Skip to content

Commit dac7c2c

Browse files
ruanylTackAdam
andauthored
feat: hide default dashboard setting when workspace is enabled (#2198)
Signed-off-by: Yulong Ruan <[email protected]> Co-authored-by: Adam Tackett <[email protected]>
1 parent be9b544 commit dac7c2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugin.ts

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
PluginInitializerContext,
1414
SavedObject,
1515
SavedObjectsType,
16+
UiSettingScope,
1617
} from '../../../src/core/server';
1718
import { DataSourcePluginSetup } from '../../../src/plugins/data_source/server/types';
1819
import { DataSourceManagementPlugin } from '../../../src/plugins/data_source_management/public/plugin';
@@ -238,6 +239,9 @@ export class ObservabilityPlugin
238239
value: '',
239240
description: 'The default dashboard to display in Observability overview page',
240241
schema: schema.string(),
242+
scope: core.workspace.isWorkspaceEnabled()
243+
? UiSettingScope.WORKSPACE
244+
: UiSettingScope.GLOBAL,
241245
},
242246
});
243247

0 commit comments

Comments
 (0)