Rename Agent dialog classes to remove "Create" (#1837)

* Remove Create from agent dialog names

* Move actions class into common directory
This commit is contained in:
Karl Burtram
2018-07-03 13:30:16 -07:00
committed by GitHub
parent 6f402ac79f
commit c2a4380b96
13 changed files with 151 additions and 148 deletions

View File

@@ -13,7 +13,7 @@ import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
export class CreateAlertDialog {
export class AlertDialog {
// Top level
private static readonly DialogTitle: string = localize('createAlert.createAlert', 'Create Alert');
@@ -62,37 +62,37 @@ export class CreateAlertDialog {
private static readonly AlertSeverity025Label: string = localize('createAlert.Severity025', '025 - Fatal Error');
private static readonly AlertTypes: string[] = [
CreateAlertDialog.AlertTypeSqlServerEventString,
CreateAlertDialog.AlertTypePerformanceConditionString,
CreateAlertDialog.AlertTypeWmiEventString
AlertDialog.AlertTypeSqlServerEventString,
AlertDialog.AlertTypePerformanceConditionString,
AlertDialog.AlertTypeWmiEventString
];
private static readonly AlertSeverities: string[] = [
CreateAlertDialog.AlertSeverity001Label,
CreateAlertDialog.AlertSeverity002Label,
CreateAlertDialog.AlertSeverity003Label,
CreateAlertDialog.AlertSeverity004Label,
CreateAlertDialog.AlertSeverity005Label,
CreateAlertDialog.AlertSeverity006Label,
CreateAlertDialog.AlertSeverity007Label,
CreateAlertDialog.AlertSeverity008Label,
CreateAlertDialog.AlertSeverity009Label,
CreateAlertDialog.AlertSeverity010Label,
CreateAlertDialog.AlertSeverity011Label,
CreateAlertDialog.AlertSeverity012Label,
CreateAlertDialog.AlertSeverity013Label,
CreateAlertDialog.AlertSeverity014Label,
CreateAlertDialog.AlertSeverity015Label,
CreateAlertDialog.AlertSeverity016Label,
CreateAlertDialog.AlertSeverity017Label,
CreateAlertDialog.AlertSeverity018Label,
CreateAlertDialog.AlertSeverity019Label,
CreateAlertDialog.AlertSeverity020Label,
CreateAlertDialog.AlertSeverity021Label,
CreateAlertDialog.AlertSeverity022Label,
CreateAlertDialog.AlertSeverity023Label,
CreateAlertDialog.AlertSeverity024Label,
CreateAlertDialog.AlertSeverity025Label
AlertDialog.AlertSeverity001Label,
AlertDialog.AlertSeverity002Label,
AlertDialog.AlertSeverity003Label,
AlertDialog.AlertSeverity004Label,
AlertDialog.AlertSeverity005Label,
AlertDialog.AlertSeverity006Label,
AlertDialog.AlertSeverity007Label,
AlertDialog.AlertSeverity008Label,
AlertDialog.AlertSeverity009Label,
AlertDialog.AlertSeverity010Label,
AlertDialog.AlertSeverity011Label,
AlertDialog.AlertSeverity012Label,
AlertDialog.AlertSeverity013Label,
AlertDialog.AlertSeverity014Label,
AlertDialog.AlertSeverity015Label,
AlertDialog.AlertSeverity016Label,
AlertDialog.AlertSeverity017Label,
AlertDialog.AlertSeverity018Label,
AlertDialog.AlertSeverity019Label,
AlertDialog.AlertSeverity020Label,
AlertDialog.AlertSeverity021Label,
AlertDialog.AlertSeverity022Label,
AlertDialog.AlertSeverity023Label,
AlertDialog.AlertSeverity024Label,
AlertDialog.AlertSeverity025Label
];
// Response tab strings
@@ -158,10 +158,10 @@ export class CreateAlertDialog {
let databases = await AgentUtils.getDatabases(this.ownerUri);
await this.model.initialize();
this.dialog = sqlops.window.modelviewdialog.createDialog(CreateAlertDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(CreateAlertDialog.GeneralTabText);
this.responseTab = sqlops.window.modelviewdialog.createTab(CreateAlertDialog.ResponseTabText);
this.optionsTab = sqlops.window.modelviewdialog.createTab(CreateAlertDialog.OptionsTabText);
this.dialog = sqlops.window.modelviewdialog.createDialog(AlertDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(AlertDialog.GeneralTabText);
this.responseTab = sqlops.window.modelviewdialog.createTab(AlertDialog.ResponseTabText);
this.optionsTab = sqlops.window.modelviewdialog.createTab(AlertDialog.OptionsTabText);
this.initializeGeneralTab(databases);
this.initializeResponseTab();
@@ -170,8 +170,8 @@ export class CreateAlertDialog {
this.dialog.content = [this.generalTab, this.responseTab, this.optionsTab];
this.dialog.okButton.onClick(async () => await this.execute());
this.dialog.cancelButton.onClick(async () => await this.cancel());
this.dialog.okButton.label = CreateAlertDialog.OkButtonText;
this.dialog.cancelButton.label = CreateAlertDialog.CancelButtonText;
this.dialog.okButton.label = AlertDialog.OkButtonText;
this.dialog.cancelButton.label = AlertDialog.CancelButtonText;
sqlops.window.modelviewdialog.openDialog(this.dialog);
}
@@ -182,7 +182,7 @@ export class CreateAlertDialog {
this.enabledCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.EnabledCheckboxLabel
label: AlertDialog.EnabledCheckboxLabel
}).component();
this.databaseDropDown = view.modelBuilder.dropDown()
@@ -193,19 +193,19 @@ export class CreateAlertDialog {
this.typeDropDown = view.modelBuilder.dropDown()
.withProperties({
value: CreateAlertDialog.AlertTypes[0],
values: CreateAlertDialog.AlertTypes
value: AlertDialog.AlertTypes[0],
values: AlertDialog.AlertTypes
}).component();
this.severityDropDown = view.modelBuilder.dropDown()
.withProperties({
value: CreateAlertDialog.AlertSeverities[0],
values: CreateAlertDialog.AlertSeverities
value: AlertDialog.AlertSeverities[0],
values: AlertDialog.AlertSeverities
}).component();
this.raiseAlertMessageCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.RaiseIfMessageContainsLabel
label: AlertDialog.RaiseIfMessageContainsLabel
}).component();
this.raiseAlertMessageTextBox = view.modelBuilder.inputBox().component();
@@ -213,22 +213,22 @@ export class CreateAlertDialog {
let formModel = view.modelBuilder.formContainer()
.withFormItems([{
component: this.nameTextBox,
title: CreateAlertDialog.NameLabel
title: AlertDialog.NameLabel
}, {
component: this.enabledCheckBox,
title: ''
}, {
component: this.typeDropDown,
title: CreateAlertDialog.TypeLabel
title: AlertDialog.TypeLabel
}, {
component: this.databaseDropDown,
title: CreateAlertDialog.DatabaseLabel
title: AlertDialog.DatabaseLabel
}, {
component: this.raiseAlertMessageCheckBox,
title: CreateAlertDialog.RaiseIfMessageContainsLabel
title: AlertDialog.RaiseIfMessageContainsLabel
}, {
component: this.raiseAlertMessageTextBox,
title: CreateAlertDialog.MessageTextLabel
title: AlertDialog.MessageTextLabel
}
]).withLayout({ width: '100%' }).component();
@@ -240,27 +240,27 @@ export class CreateAlertDialog {
this.responseTab.registerContent(async view => {
this.executeJobCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.ExecuteJobCheckBoxLabel
label: AlertDialog.ExecuteJobCheckBoxLabel
}).component();
this.executeJobTextBox = view.modelBuilder.inputBox().component();
this.newJobButton = view.modelBuilder.button().withProperties({
label: CreateAlertDialog.NewJobButtonLabel,
label: AlertDialog.NewJobButtonLabel,
width: 80
}).component();
this.notifyOperatorsCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.NotifyOperatorsTextBoxLabel
label: AlertDialog.NotifyOperatorsTextBoxLabel
}).component();
this.operatorsTable = view.modelBuilder.table()
.withProperties({
columns: [
CreateAlertDialog.OperatorNameColumnLabel,
CreateAlertDialog.OperatorEmailColumnLabel,
CreateAlertDialog.OperatorPagerColumnLabel
AlertDialog.OperatorNameColumnLabel,
AlertDialog.OperatorEmailColumnLabel,
AlertDialog.OperatorPagerColumnLabel
],
data: [],
height: 500
@@ -277,16 +277,16 @@ export class CreateAlertDialog {
title: ''
}, {
component: this.executeJobTextBox,
title: CreateAlertDialog.ExecuteJobTextBoxLabel
title: AlertDialog.ExecuteJobTextBoxLabel
}, {
component: this.newJobButton,
title: CreateAlertDialog.NewJobButtonLabel
title: AlertDialog.NewJobButtonLabel
}, {
component: this.notifyOperatorsCheckBox,
title: ''
}, {
component: this.operatorsTable,
title: CreateAlertDialog.OperatorListLabel,
title: AlertDialog.OperatorListLabel,
actions: [this.newOperatorButton]
}]).withLayout({ width: '100%' }).component();
@@ -299,12 +299,12 @@ export class CreateAlertDialog {
this.includeErrorInEmailTextBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.IncludeErrorInEmailCheckBoxLabel
label: AlertDialog.IncludeErrorInEmailCheckBoxLabel
}).component();
this.includeErrorInPagerTextBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateAlertDialog.IncludeErrorInPagerCheckBoxLabel
label: AlertDialog.IncludeErrorInPagerCheckBoxLabel
}).component();
this.additionalMessageTextBox = view.modelBuilder.inputBox().component();
@@ -322,13 +322,13 @@ export class CreateAlertDialog {
title: ''
}, {
component: this.additionalMessageTextBox,
title: CreateAlertDialog.AdditionalMessageTextBoxLabel
title: AlertDialog.AdditionalMessageTextBoxLabel
}, {
component: this.delayMinutesTextBox,
title: CreateAlertDialog.DelayMinutesTextBoxLabel
title: AlertDialog.DelayMinutesTextBoxLabel
}, {
component: this.delaySecondsTextBox,
title: CreateAlertDialog.DelaySecondsTextBoxLabel
title: AlertDialog.DelaySecondsTextBoxLabel
}]).withLayout({ width: '100%' }).component();
await view.initializeModel(formModel);

View File

@@ -5,11 +5,11 @@
'use strict';
import * as sqlops from 'sqlops';
import { CreateJobData } from '../data/createJobData';
import { CreateStepDialog } from './createStepDialog';
import { JobStepDialog } from './jobStepDialog';
import { PickScheduleDialog } from './pickScheduleDialog';
import { CreateAlertDialog } from './createAlertDialog';
import { AlertDialog } from './alertDialog';
export class CreateJobDialog {
export class JobDialog {
// TODO: localize
// Top level
@@ -200,7 +200,7 @@ export class CreateJobDialog {
}).component();
this.newStepButton.onDidClick((e)=>{
let stepDialog = new CreateStepDialog(this.model.ownerUri, '', '', 1, this.model);
let stepDialog = new JobStepDialog(this.model.ownerUri, '', '', 1, this.model);
stepDialog.openNewStepDialog();
});
@@ -247,7 +247,7 @@ export class CreateJobDialog {
}).component();
this.newAlertButton.onDidClick((e)=>{
let alertDialog = new CreateAlertDialog(this.model.ownerUri);
let alertDialog = new AlertDialog(this.model.ownerUri);
alertDialog.onSuccess((dialogModel) => {
});
alertDialog.showDialog();

View File

@@ -10,7 +10,7 @@ import { AgentUtils } from '../agentUtils';
import { CreateJobData } from '../data/createJobData';
const path = require('path');
export class CreateStepDialog {
export class JobStepDialog {
// TODO: localize
// Top level
@@ -98,24 +98,24 @@ export class CreateStepDialog {
}
private initializeUIComponents() {
this.dialog = sqlops.window.modelviewdialog.createDialog(CreateStepDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(CreateStepDialog.GeneralTabText);
this.advancedTab = sqlops.window.modelviewdialog.createTab(CreateStepDialog.AdvancedTabText);
this.dialog = sqlops.window.modelviewdialog.createDialog(JobStepDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(JobStepDialog.GeneralTabText);
this.advancedTab = sqlops.window.modelviewdialog.createTab(JobStepDialog.AdvancedTabText);
this.dialog.content = [this.generalTab, this.advancedTab];
this.dialog.okButton.onClick(async () => await this.execute());
this.dialog.okButton.label = CreateStepDialog.OkButtonText;
this.dialog.cancelButton.label = CreateStepDialog.CancelButtonText;
this.dialog.okButton.label = JobStepDialog.OkButtonText;
this.dialog.cancelButton.label = JobStepDialog.CancelButtonText;
}
private createCommands(view, queryProvider: sqlops.QueryProvider) {
this.openButton = view.modelBuilder.button()
.withProperties({
label: CreateStepDialog.OpenCommandText,
label: JobStepDialog.OpenCommandText,
width: '80px'
}).component();
this.parseButton = view.modelBuilder.button()
.withProperties({
label: CreateStepDialog.ParseCommandText,
label: JobStepDialog.ParseCommandText,
width: '80px'
}).component();
this.parseButton.onDidClick(e => {
@@ -139,13 +139,13 @@ export class CreateStepDialog {
.component();
this.nextButton = view.modelBuilder.button()
.withProperties({
label: CreateStepDialog.NextButtonText,
label: JobStepDialog.NextButtonText,
enabled: false,
width: '80px'
}).component();
this.previousButton = view.modelBuilder.button()
.withProperties({
label: CreateStepDialog.PreviousButtonText,
label: JobStepDialog.PreviousButtonText,
enabled: false,
width: '80px'
}).component();
@@ -159,8 +159,8 @@ export class CreateStepDialog {
this.nameTextBox.required = true;
this.typeDropdown = view.modelBuilder.dropDown()
.withProperties({
value: CreateStepDialog.TSQLScript,
values: [CreateStepDialog.TSQLScript]
value: JobStepDialog.TSQLScript,
values: [JobStepDialog.TSQLScript]
})
.component();
this.runAsDropdown = view.modelBuilder.dropDown()
@@ -171,8 +171,8 @@ export class CreateStepDialog {
.component();
this.runAsDropdown.enabled = false;
this.typeDropdown.onValueChanged((type) => {
if (type.selected !== CreateStepDialog.TSQLScript) {
this.runAsDropdown.value = CreateStepDialog.AgentServiceAccount;
if (type.selected !== JobStepDialog.TSQLScript) {
this.runAsDropdown.value = JobStepDialog.AgentServiceAccount;
this.runAsDropdown.values = [this.runAsDropdown.value];
} else {
this.runAsDropdown.value = '';
@@ -251,15 +251,15 @@ export class CreateStepDialog {
this.advancedTab.registerContent(async (view) => {
this.successActionDropdown = view.modelBuilder.dropDown()
.withProperties({
value: CreateStepDialog.NextStep,
values: [CreateStepDialog.NextStep, CreateStepDialog.QuitJobReportingSuccess, CreateStepDialog.QuitJobReportingFailure]
value: JobStepDialog.NextStep,
values: [JobStepDialog.NextStep, JobStepDialog.QuitJobReportingSuccess, JobStepDialog.QuitJobReportingFailure]
})
.component();
let retryFlexContainer = this.createRetryCounters(view);
this.failureActionDropdown = view.modelBuilder.dropDown()
.withProperties({
value: CreateStepDialog.QuitJobReportingFailure,
values: [CreateStepDialog.QuitJobReportingFailure, CreateStepDialog.NextStep, CreateStepDialog.QuitJobReportingSuccess]
value: JobStepDialog.QuitJobReportingFailure,
values: [JobStepDialog.QuitJobReportingFailure, JobStepDialog.NextStep, JobStepDialog.QuitJobReportingSuccess]
})
.component();
let optionsGroup = this.createTSQLOptions(view);
@@ -289,13 +289,13 @@ export class CreateStepDialog {
.withFormItems(
[{
component: this.successActionDropdown,
title: CreateStepDialog.SuccessAction
title: JobStepDialog.SuccessAction
}, {
component: retryFlexContainer,
title: ''
}, {
component: this.failureActionDropdown,
title: CreateStepDialog.FailureAction
title: JobStepDialog.FailureAction
}, {
component: optionsGroup,
title: 'Transact-SQL script (T-SQL)'
@@ -362,7 +362,7 @@ export class CreateStepDialog {
}
private openFileBrowserDialog() {
let fileBrowserTitle = CreateStepDialog.FileBrowserDialogTitle + `${this.server}`;
let fileBrowserTitle = JobStepDialog.FileBrowserDialogTitle + `${this.server}`;
this.fileBrowserDialog = sqlops.window.modelviewdialog.createDialog(fileBrowserTitle);
let fileBrowserTab = sqlops.window.modelviewdialog.createTab('File Browser');
this.fileBrowserDialog.content = [fileBrowserTab];
@@ -406,8 +406,8 @@ export class CreateStepDialog {
this.fileBrowserDialog.okButton.onClick(() => {
this.outputFileNameBox.value = path.join(path.dirname(this.selectedPathTextBox.value), this.fileBrowserNameBox.value);
});
this.fileBrowserDialog.okButton.label = CreateStepDialog.OkButtonText;
this.fileBrowserDialog.cancelButton.label = CreateStepDialog.CancelButtonText;
this.fileBrowserDialog.okButton.label = JobStepDialog.OkButtonText;
this.fileBrowserDialog.cancelButton.label = JobStepDialog.CancelButtonText;
sqlops.window.modelviewdialog.openDialog(this.fileBrowserDialog);
}

View File

@@ -12,7 +12,7 @@ import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
export class CreateOperatorDialog {
export class OperatorDialog {
// Top level
private static readonly DialogTitle: string = localize('createOperator.createOperator', 'Create Operator');
@@ -72,9 +72,9 @@ export class CreateOperatorDialog {
public async showDialog() {
await this.model.initialize();
this.dialog = sqlops.window.modelviewdialog.createDialog(CreateOperatorDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(CreateOperatorDialog.GeneralTabText);
this.notificationsTab = sqlops.window.modelviewdialog.createTab(CreateOperatorDialog.NotificationsTabText);
this.dialog = sqlops.window.modelviewdialog.createDialog(OperatorDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(OperatorDialog.GeneralTabText);
this.notificationsTab = sqlops.window.modelviewdialog.createTab(OperatorDialog.NotificationsTabText);
this.initializeGeneralTab();
this.initializeNotificationTab();
@@ -82,8 +82,8 @@ export class CreateOperatorDialog {
this.dialog.content = [this.generalTab, this.notificationsTab];
this.dialog.okButton.onClick(async () => await this.execute());
this.dialog.cancelButton.onClick(async () => await this.cancel());
this.dialog.okButton.label = CreateOperatorDialog.OkButtonText;
this.dialog.cancelButton.label = CreateOperatorDialog.CancelButtonText;
this.dialog.okButton.label = OperatorDialog.OkButtonText;
this.dialog.cancelButton.label = OperatorDialog.CancelButtonText;
sqlops.window.modelviewdialog.openDialog(this.dialog);
}
@@ -94,7 +94,7 @@ export class CreateOperatorDialog {
this.enabledCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.EnabledCheckboxLabel
label: OperatorDialog.EnabledCheckboxLabel
}).component();
this.emailNameTextBox = view.modelBuilder.inputBox().component();
@@ -103,57 +103,57 @@ export class CreateOperatorDialog {
this.enabledCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.EnabledCheckboxLabel
label: OperatorDialog.EnabledCheckboxLabel
}).component();
this.pagerMondayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerMondayCheckBoxLabel
label: OperatorDialog.PagerMondayCheckBoxLabel
}).component();
this.pagerTuesdayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerTuesdayCheckBoxLabel
label: OperatorDialog.PagerTuesdayCheckBoxLabel
}).component();
this.pagerWednesdayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerWednesdayCheckBoxLabel
label: OperatorDialog.PagerWednesdayCheckBoxLabel
}).component();
this.pagerThursdayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerThursdayCheckBoxLabel
label: OperatorDialog.PagerThursdayCheckBoxLabel
}).component();
this.pagerFridayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerFridayCheckBoxLabel
label: OperatorDialog.PagerFridayCheckBoxLabel
}).component();
this.pagerSaturdayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerSaturdayCheckBoxLabel
label: OperatorDialog.PagerSaturdayCheckBoxLabel
}).component();
this.pagerSundayCheckBox = view.modelBuilder.checkBox()
.withProperties({
label: CreateOperatorDialog.PagerSundayCheckBoxLabel
label: OperatorDialog.PagerSundayCheckBoxLabel
}).component();
let formModel = view.modelBuilder.formContainer()
.withFormItems([{
component: this.nameTextBox,
title: CreateOperatorDialog.NameLabel
title: OperatorDialog.NameLabel
}, {
component: this.enabledCheckBox,
title: ''
}, {
component: this.emailNameTextBox,
title: CreateOperatorDialog.EmailNameTextLabel
title: OperatorDialog.EmailNameTextLabel
}, {
component: this.pagerEmailNameTextBox,
title: CreateOperatorDialog.PagerEmailNameTextLabel
title: OperatorDialog.PagerEmailNameTextLabel
}, {
component: this.pagerTuesdayCheckBox,
title: ''
@@ -184,9 +184,9 @@ export class CreateOperatorDialog {
this.alertsTable = view.modelBuilder.table()
.withProperties({
columns: [
CreateOperatorDialog.AlertNameColumnLabel,
CreateOperatorDialog.AlertEmailColumnLabel,
CreateOperatorDialog.AlertPagerColumnLabel
OperatorDialog.AlertNameColumnLabel,
OperatorDialog.AlertEmailColumnLabel,
OperatorDialog.AlertPagerColumnLabel
],
data: [],
height: 500
@@ -195,7 +195,7 @@ export class CreateOperatorDialog {
let formModel = view.modelBuilder.formContainer()
.withFormItems([{
component: this.alertsTable,
title: CreateOperatorDialog.AlertsTableLabel
title: OperatorDialog.AlertsTableLabel
}]).withLayout({ width: '100%' }).component();
await view.initializeModel(formModel);

View File

@@ -12,7 +12,7 @@ import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
export class CreateProxyDialog {
export class ProxyDialog {
// Top level
private static readonly DialogTitle: string = localize('createProxy.createAlert', 'Create Alert');
@@ -48,16 +48,16 @@ export class CreateProxyDialog {
public async showDialog() {
await this.model.initialize();
this.dialog = sqlops.window.modelviewdialog.createDialog(CreateProxyDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(CreateProxyDialog.GeneralTabText);
this.dialog = sqlops.window.modelviewdialog.createDialog(ProxyDialog.DialogTitle);
this.generalTab = sqlops.window.modelviewdialog.createTab(ProxyDialog.GeneralTabText);
this.initializeGeneralTab();
this.dialog.content = [this.generalTab];
this.dialog.okButton.onClick(async () => await this.execute());
this.dialog.cancelButton.onClick(async () => await this.cancel());
this.dialog.okButton.label = CreateProxyDialog.OkButtonText;
this.dialog.cancelButton.label = CreateProxyDialog.CancelButtonText;
this.dialog.okButton.label = ProxyDialog.OkButtonText;
this.dialog.cancelButton.label = ProxyDialog.CancelButtonText;
sqlops.window.modelviewdialog.openDialog(this.dialog);
}
@@ -74,7 +74,7 @@ export class CreateProxyDialog {
this.subsystemsTable = view.modelBuilder.table()
.withProperties({
columns: [
CreateProxyDialog.SubsystemNameColumnLabel
ProxyDialog.SubsystemNameColumnLabel
],
data: [],
height: 500
@@ -83,16 +83,16 @@ export class CreateProxyDialog {
let formModel = view.modelBuilder.formContainer()
.withFormItems([{
component: this.proxyNameTextBox,
title: CreateProxyDialog.ProxyNameTextBoxLabel
title: ProxyDialog.ProxyNameTextBoxLabel
}, {
component: this.credentialNameTextBox,
title: CreateProxyDialog.CredentialNameTextBoxLabel
title: ProxyDialog.CredentialNameTextBoxLabel
}, {
component: this.descriptionTextBox,
title: CreateProxyDialog.DescriptionTextBoxLabel
title: ProxyDialog.DescriptionTextBoxLabel
}, {
component: this.subsystemsTable,
title: CreateProxyDialog.SubsystemsTableLabel
title: ProxyDialog.SubsystemsTableLabel
}]).withLayout({ width: '100%' }).component();
await view.initializeModel(formModel);

View File

@@ -9,7 +9,7 @@ import * as sqlops from 'sqlops';
import * as vscode from 'vscode';
import { CreateScheduleData } from '../data/createScheduleData';
export class CreateScheduleDialog {
export class ScheduleDialog {
// Top level
private readonly DialogTitle: string = 'New Schedule';