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:
Barbara Valdez 2023-10-03 13:15:50 -07:00 коммит произвёл GitHub
Родитель 5ed263ecd2
Коммит c641865891
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -18,6 +18,7 @@ import * as vscode from 'vscode';
const MAXDOP_Max_Limit = 32767;
const PAUSED_RESUMABLE_INDEX_Max_Limit = 71582;
const DscTableRowLength = 15;
const Dialog_Width = '750px';
export class DatabaseDialog extends ObjectManagementDialogBase<Database, DatabaseViewInfo> {
// Database Properties tabs
@ -122,6 +123,7 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
options.width = Dialog_Width;
super(objectManagementService, options);
}
@ -267,6 +269,9 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
const propertiesTabGroup = { title: '', tabs: tabs };
const propertiesTabbedPannel = this.modelView.modelBuilder.tabbedPanel()
.withTabs([propertiesTabGroup])
.withLayout({
orientation: azdata.TabOrientation.Vertical
})
.withProps({
CSSStyles: {
'margin': '-10px 0px 0px -10px'

Просмотреть файл

@ -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'