diff --git a/src/plugins/dashboard/public/dashboard_actions/add_to_library_action.tsx b/src/plugins/dashboard/public/dashboard_actions/add_to_library_action.tsx index ab37053b3a65a..196b04547eb92 100644 --- a/src/plugins/dashboard/public/dashboard_actions/add_to_library_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/add_to_library_action.tsx @@ -37,7 +37,7 @@ import { Action, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; import { PresentationContainer } from '@kbn/presentation-containers'; import { pluginServices } from '../services/plugin_services'; import { dashboardAddToLibraryActionStrings } from './_dashboard_actions_strings'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; export const ACTION_ADD_TO_LIBRARY = 'saveToLibrary'; @@ -62,7 +62,7 @@ export class AddToLibraryAction implements Action { public readonly type = ACTION_ADD_TO_LIBRARY; public readonly id = ACTION_ADD_TO_LIBRARY; public order = 8; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; private toastsService; diff --git a/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx b/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx index f0ebebc57ec31..24c4fc9683cfa 100644 --- a/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx @@ -20,7 +20,7 @@ import { HasUniqueId, } from '@kbn/presentation-publishing'; import { Action, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; import { dashboardClonePanelActionStrings } from './_dashboard_actions_strings'; export const ACTION_CLONE_PANEL = 'clonePanel'; @@ -42,7 +42,7 @@ export class ClonePanelAction implements Action { public readonly type = ACTION_CLONE_PANEL; public readonly id = ACTION_CLONE_PANEL; public order = 45; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; constructor() {} diff --git a/src/plugins/dashboard/public/dashboard_actions/copy_to_dashboard_action.tsx b/src/plugins/dashboard/public/dashboard_actions/copy_to_dashboard_action.tsx index d36981cf3bcce..7a9f6588da05d 100644 --- a/src/plugins/dashboard/public/dashboard_actions/copy_to_dashboard_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/copy_to_dashboard_action.tsx @@ -29,7 +29,7 @@ import { DashboardApi } from '../dashboard_api/types'; import { pluginServices } from '../services/plugin_services'; import { CopyToDashboardModal } from './copy_to_dashboard_modal'; import { dashboardCopyToDashboardActionStrings } from './_dashboard_actions_strings'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; export const ACTION_COPY_TO_DASHBOARD = 'copyToDashboard'; @@ -60,7 +60,7 @@ export class CopyToDashboardAction implements Action { public readonly type = ACTION_COPY_TO_DASHBOARD; public readonly id = ACTION_COPY_TO_DASHBOARD; public order = 1; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; private dashboardCapabilities; private openModal; diff --git a/src/plugins/dashboard/public/dashboard_actions/expand_panel_action.tsx b/src/plugins/dashboard/public/dashboard_actions/expand_panel_action.tsx index 634e5aeaf4600..c987376adc64c 100644 --- a/src/plugins/dashboard/public/dashboard_actions/expand_panel_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/expand_panel_action.tsx @@ -16,7 +16,7 @@ import { HasUniqueId, } from '@kbn/presentation-publishing'; import { Action, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; import { dashboardExpandPanelActionStrings } from './_dashboard_actions_strings'; @@ -31,7 +31,7 @@ export class ExpandPanelAction implements Action { public readonly type = ACTION_EXPAND_PANEL; public readonly id = ACTION_EXPAND_PANEL; public order = 9; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; constructor() {} diff --git a/src/plugins/dashboard/public/dashboard_actions/index.ts b/src/plugins/dashboard/public/dashboard_actions/index.ts index 9a12ae2afd22a..8993a30c65002 100644 --- a/src/plugins/dashboard/public/dashboard_actions/index.ts +++ b/src/plugins/dashboard/public/dashboard_actions/index.ts @@ -26,7 +26,7 @@ interface BuildAllDashboardActionsProps { plugins: DashboardStartDependencies; } -export const dashboardActionGroup = { id: 'dashboard_actions', order: 10 }; +export const DASHBOARD_ACTION_GROUP = { id: 'dashboard_actions', order: 10 }; export const buildAllDashboardActions = async ({ core, diff --git a/src/plugins/dashboard/public/dashboard_actions/legacy_add_to_library_action.tsx b/src/plugins/dashboard/public/dashboard_actions/legacy_add_to_library_action.tsx index ae997283bb4d1..56cf60052be9e 100644 --- a/src/plugins/dashboard/public/dashboard_actions/legacy_add_to_library_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/legacy_add_to_library_action.tsx @@ -18,7 +18,7 @@ import { HasLegacyLibraryTransforms, } from '@kbn/presentation-publishing'; import { Action, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; import { pluginServices } from '../services/plugin_services'; import { dashboardAddToLibraryActionStrings } from './_dashboard_actions_strings'; @@ -35,7 +35,7 @@ export class LegacyAddToLibraryAction implements Action { public readonly type = ACTION_LEGACY_ADD_TO_LIBRARY; public readonly id = ACTION_LEGACY_ADD_TO_LIBRARY; public order = 15; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; private toastsService; diff --git a/src/plugins/dashboard/public/dashboard_actions/legacy_unlink_from_library_action.tsx b/src/plugins/dashboard/public/dashboard_actions/legacy_unlink_from_library_action.tsx index 5358120572b9c..1be0868b14f5f 100644 --- a/src/plugins/dashboard/public/dashboard_actions/legacy_unlink_from_library_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/legacy_unlink_from_library_action.tsx @@ -21,7 +21,7 @@ import { } from '@kbn/presentation-publishing'; import { pluginServices } from '../services/plugin_services'; import { dashboardUnlinkFromLibraryActionStrings } from './_dashboard_actions_strings'; -import { dashboardActionGroup } from '.'; +import { DASHBOARD_ACTION_GROUP } from '.'; export const ACTION_LEGACY_UNLINK_FROM_LIBRARY = 'legacyUnlinkFromLibrary'; @@ -38,7 +38,7 @@ export class LegacyUnlinkFromLibraryAction implements Action { public readonly type = ACTION_UNLINK_FROM_LIBRARY; public readonly id = ACTION_UNLINK_FROM_LIBRARY; public order = 15; - public grouping = [dashboardActionGroup]; + public grouping = [DASHBOARD_ACTION_GROUP]; private toastsService;