mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 01:25:38 -05:00
Use vertical tabs in server and database properties (#24521)
* use vertical tabs * remove always show tabs option * remove extra comma
This commit is contained in:
@@ -11,6 +11,8 @@ import * as localizedConstants from '../localizedConstants';
|
||||
import * as constants from '../constants';
|
||||
import { Server, ServerViewInfo, NumaNode, AffinityType, ServerLoginMode, AuditLevel } from '../interfaces';
|
||||
|
||||
const Dialog_Width = '750px';
|
||||
|
||||
export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, ServerViewInfo> {
|
||||
private generalTab: azdata.Tab;
|
||||
private readonly generalTabId: string = 'generalId';
|
||||
@@ -90,6 +92,7 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
||||
private shouldRestartServer: boolean = false;
|
||||
|
||||
constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
|
||||
options.width = Dialog_Width;
|
||||
super(objectManagementService, options);
|
||||
this.disposables.push(this.dialogObject.onClosed(async (reason: azdata.window.CloseReason) => {
|
||||
if (reason === 'ok') {
|
||||
@@ -138,6 +141,9 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
||||
const serverPropertiesTabGroup = { title: '', tabs: [this.generalTab, this.memoryTab, this.processorsTab, this.securityTab, this.databaseSettingsTab, this.advancedTab] };
|
||||
const serverPropertiesTabbedPannel = this.modelView.modelBuilder.tabbedPanel()
|
||||
.withTabs([serverPropertiesTabGroup])
|
||||
.withLayout({
|
||||
orientation: azdata.TabOrientation.Vertical
|
||||
})
|
||||
.withProps({
|
||||
CSSStyles: {
|
||||
'margin': '-10px 0px 0px -10px'
|
||||
|
||||
Reference in New Issue
Block a user