Skip to content

Commit

Permalink
feat: hide default dashboard setting when workspace is enabled (opens…
Browse files Browse the repository at this point in the history
…earch-project#2198)

Signed-off-by: Yulong Ruan <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
  • Loading branch information
ruanyl and TackAdam authored Oct 16, 2024
1 parent be9b544 commit dac7c2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
PluginInitializerContext,
SavedObject,
SavedObjectsType,
UiSettingScope,
} from '../../../src/core/server';
import { DataSourcePluginSetup } from '../../../src/plugins/data_source/server/types';
import { DataSourceManagementPlugin } from '../../../src/plugins/data_source_management/public/plugin';
Expand Down Expand Up @@ -238,6 +239,9 @@ export class ObservabilityPlugin
value: '',
description: 'The default dashboard to display in Observability overview page',
schema: schema.string(),
scope: core.workspace.isWorkspaceEnabled()
? UiSettingScope.WORKSPACE
: UiSettingScope.GLOBAL,
},
});

Expand Down

0 comments on commit dac7c2c

Please sign in to comment.