Skip to content

Commit

Permalink
Rename DASHBOARD_ACTION_GROUP
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Sep 23, 2024
1 parent 47c1879 commit e96efb2
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -62,7 +62,7 @@ export class AddToLibraryAction implements Action<EmbeddableApiContext> {
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -42,7 +42,7 @@ export class ClonePanelAction implements Action<EmbeddableApiContext> {
public readonly type = ACTION_CLONE_PANEL;
public readonly id = ACTION_CLONE_PANEL;
public order = 45;
public grouping = [dashboardActionGroup];
public grouping = [DASHBOARD_ACTION_GROUP];

constructor() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -60,7 +60,7 @@ export class CopyToDashboardAction implements Action<EmbeddableApiContext> {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -31,7 +31,7 @@ export class ExpandPanelAction implements Action<EmbeddableApiContext> {
public readonly type = ACTION_EXPAND_PANEL;
public readonly id = ACTION_EXPAND_PANEL;
public order = 9;
public grouping = [dashboardActionGroup];
public grouping = [DASHBOARD_ACTION_GROUP];

constructor() {}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dashboard/public/dashboard_actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -35,7 +35,7 @@ export class LegacyAddToLibraryAction implements Action<EmbeddableApiContext> {
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -38,7 +38,7 @@ export class LegacyUnlinkFromLibraryAction implements Action<EmbeddableApiContex
public readonly type = ACTION_LEGACY_UNLINK_FROM_LIBRARY;
public readonly id = ACTION_LEGACY_UNLINK_FROM_LIBRARY;
public order = 15;
public grouping = [dashboardActionGroup];
public grouping = [DASHBOARD_ACTION_GROUP];

private toastsService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
import { PresentationContainer } from '@kbn/presentation-containers';
import { pluginServices } from '../services/plugin_services';
import { dashboardUnlinkFromLibraryActionStrings } from './_dashboard_actions_strings';
import { dashboardActionGroup } from '.';
import { DASHBOARD_ACTION_GROUP } from '.';

export const ACTION_UNLINK_FROM_LIBRARY = 'unlinkFromLibrary';

Expand All @@ -55,7 +55,7 @@ export class UnlinkFromLibraryAction implements Action<EmbeddableApiContext> {
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;

Expand Down

0 comments on commit e96efb2

Please sign in to comment.