mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
feat: split row_actions into remove_action and overflow_actions for URL plugins
This commit is contained in:
@@ -765,7 +765,15 @@ export class StartSdk<Manifest extends T.SDKManifest> {
|
||||
effects: T.Effects,
|
||||
options: {
|
||||
hostnameInfo: T.PluginHostnameInfo
|
||||
rowActions: ActionInfo<
|
||||
removeAction: ActionInfo<
|
||||
T.ActionId,
|
||||
{
|
||||
urlPluginMetadata: T.PluginHostnameInfo & {
|
||||
interfaceId: T.ServiceInterfaceId
|
||||
}
|
||||
}
|
||||
> | null
|
||||
overflowActions: ActionInfo<
|
||||
T.ActionId,
|
||||
{
|
||||
urlPluginMetadata: T.PluginHostnameInfo & {
|
||||
@@ -777,7 +785,8 @@ export class StartSdk<Manifest extends T.SDKManifest> {
|
||||
) =>
|
||||
effects.plugin.url.exportUrl({
|
||||
hostnameInfo: options.hostnameInfo,
|
||||
rowActions: options.rowActions.map((a) => a.id),
|
||||
removeAction: options.removeAction?.id ?? null,
|
||||
overflowActions: options.overflowActions.map((a) => a.id),
|
||||
}),
|
||||
setupExportedUrls, // similar to setupInterfaces
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user