Skip to content

Commit

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

(cherry picked from commit dac7c2c)

Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <105462877+TackAdam@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 17, 2024
1 parent 9bad4b9 commit 93483d8
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 93483d8

Please sign in to comment.