mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
pre-defined dashboard tab groups (#9916)
* pre-defined dashboard tab groups * add back the tab group contribution * comments
This commit is contained in:
@@ -17,6 +17,7 @@ import { GRID_CONTAINER, validateGridContainerContribution } from 'sql/workbench
|
||||
import { values } from 'vs/base/common/collections';
|
||||
import { IUserFriendlyIcon } from 'sql/workbench/contrib/dashboard/browser/core/dashboardWidget';
|
||||
import { isValidIcon, createCSSRuleForIcon } from 'sql/workbench/contrib/dashboard/browser/dashboardIconUtil';
|
||||
import { IDashboardTabGroup } from 'sql/workbench/services/dashboard/browser/common/interfaces';
|
||||
|
||||
export interface IDashboardTabContrib {
|
||||
id: string;
|
||||
@@ -237,3 +238,30 @@ ExtensionsRegistry.registerExtensionPoint<IDashboardTabContrib | IDashboardTabCo
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Predefined tab groups
|
||||
*/
|
||||
const PredefinedTabGroups: IDashboardTabGroup[] = [
|
||||
{
|
||||
id: 'administration',
|
||||
title: localize('administrationTabGroup', "Administration")
|
||||
}, {
|
||||
id: 'monitoring',
|
||||
title: localize('monitoringTabGroup', "Monitoring")
|
||||
}, {
|
||||
id: 'performance',
|
||||
title: localize('performanceTabGroup', "Performance")
|
||||
}, {
|
||||
id: 'security',
|
||||
title: localize('securityTabGroup', "Security")
|
||||
}, {
|
||||
id: 'troubleshooting',
|
||||
title: localize('troubleshootingTabGroup', "Troubleshooting")
|
||||
}, {
|
||||
id: 'settings',
|
||||
title: localize('settingsTabGroup', "Settings")
|
||||
}
|
||||
];
|
||||
|
||||
PredefinedTabGroups.forEach(tabGroup => registerTabGroup(tabGroup));
|
||||
|
||||
Reference in New Issue
Block a user