Skip to content

Commit

Permalink
add constants
Browse files Browse the repository at this point in the history
  • Loading branch information
barbaravaldez committed Sep 13, 2023
1 parent 2ba6a47 commit 6659c84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/mssql/src/objectManagement/ui/databaseDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '650px';

export class DatabaseDialog extends ObjectManagementDialogBase<Database, DatabaseViewInfo> {
// Database Properties tabs
Expand Down Expand Up @@ -118,7 +119,7 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas


constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
options.width = '645px';
options.width = Dialog_Width;
super(objectManagementService, options);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '560px';

export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, ServerViewInfo> {
private generalTab: azdata.Tab;
private readonly generalTabId: string = 'generalId';
Expand Down Expand Up @@ -90,7 +92,7 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
private shouldRestartServer: boolean = false;

constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
options.width = '560px'
options.width = Dialog_Width;
super(objectManagementService, options);
this.disposables.push(this.dialogObject.onClosed(async (reason: azdata.window.CloseReason) => {
if (reason === 'ok') {
Expand Down

0 comments on commit 6659c84

Please sign in to comment.