mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 11:01:37 -05:00
added preview messages (#2208)
This commit is contained in:
committed by
Karl Burtram
parent
92bc253cf7
commit
efa3658ced
@@ -367,11 +367,18 @@ export class AlertDialog extends AgentDialog<AlertData> {
|
|||||||
title: AlertDialog.NewJobButtonLabel
|
title: AlertDialog.NewJobButtonLabel
|
||||||
}], { componentWidth: '100%'}).component();
|
}], { componentWidth: '100%'}).component();
|
||||||
|
|
||||||
|
let previewTag = view.modelBuilder.text()
|
||||||
|
.withProperties({
|
||||||
|
value: 'Feature Preview'
|
||||||
|
}).component();
|
||||||
|
|
||||||
this.notifyOperatorsCheckBox = view.modelBuilder.checkBox()
|
this.notifyOperatorsCheckBox = view.modelBuilder.checkBox()
|
||||||
.withProperties({
|
.withProperties({
|
||||||
label: AlertDialog.NotifyOperatorsTextBoxLabel
|
label: AlertDialog.NotifyOperatorsTextBoxLabel
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
|
this.notifyOperatorsCheckBox.enabled = false;
|
||||||
|
|
||||||
this.operatorsTable = view.modelBuilder.table()
|
this.operatorsTable = view.modelBuilder.table()
|
||||||
.withProperties({
|
.withProperties({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -423,6 +430,9 @@ export class AlertDialog extends AgentDialog<AlertData> {
|
|||||||
}, {
|
}, {
|
||||||
component: executeJobContainer,
|
component: executeJobContainer,
|
||||||
title: ''
|
title: ''
|
||||||
|
}, {
|
||||||
|
component: previewTag,
|
||||||
|
title: ''
|
||||||
}, {
|
}, {
|
||||||
component: this.notifyOperatorsCheckBox,
|
component: this.notifyOperatorsCheckBox,
|
||||||
title: ''
|
title: ''
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ export class JobDialog extends AgentDialog<JobData> {
|
|||||||
this.initializeSchedulesTab();
|
this.initializeSchedulesTab();
|
||||||
this.initializeNotificationsTab();
|
this.initializeNotificationsTab();
|
||||||
this.dialog.content = [this.generalTab, this.stepsTab, this.schedulesTab, this.alertsTab, this.notificationsTab];
|
this.dialog.content = [this.generalTab, this.stepsTab, this.schedulesTab, this.alertsTab, this.notificationsTab];
|
||||||
|
|
||||||
this.dialog.registerCloseValidator(() => {
|
this.dialog.registerCloseValidator(() => {
|
||||||
this.updateModel();
|
this.updateModel();
|
||||||
let validationResult = this.model.validate();
|
let validationResult = this.model.validate();
|
||||||
@@ -194,6 +193,10 @@ export class JobDialog extends AgentDialog<JobData> {
|
|||||||
|
|
||||||
private initializeStepsTab() {
|
private initializeStepsTab() {
|
||||||
this.stepsTab.registerContent(async view => {
|
this.stepsTab.registerContent(async view => {
|
||||||
|
let previewTag = view.modelBuilder.text()
|
||||||
|
.withProperties({
|
||||||
|
value: 'Feature Preview'
|
||||||
|
}).component();
|
||||||
this.stepsTable = view.modelBuilder.table()
|
this.stepsTable = view.modelBuilder.table()
|
||||||
.withProperties({
|
.withProperties({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -246,8 +249,14 @@ export class JobDialog extends AgentDialog<JobData> {
|
|||||||
width: 80
|
width: 80
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
|
this.stepsTable.enabled = false;
|
||||||
|
|
||||||
let formModel = view.modelBuilder.formContainer()
|
let formModel = view.modelBuilder.formContainer()
|
||||||
.withFormItems([{
|
.withFormItems([{
|
||||||
|
component: previewTag,
|
||||||
|
title: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
component: this.stepsTable,
|
component: this.stepsTable,
|
||||||
title: this.JobStepsTopLabelString,
|
title: this.JobStepsTopLabelString,
|
||||||
actions: [this.moveStepUpButton, this.moveStepDownButton, this.newStepButton, this.editStepButton, this.deleteStepButton]
|
actions: [this.moveStepUpButton, this.moveStepDownButton, this.newStepButton, this.editStepButton, this.deleteStepButton]
|
||||||
@@ -258,6 +267,10 @@ export class JobDialog extends AgentDialog<JobData> {
|
|||||||
|
|
||||||
private initializeAlertsTab() {
|
private initializeAlertsTab() {
|
||||||
this.alertsTab.registerContent(async view => {
|
this.alertsTab.registerContent(async view => {
|
||||||
|
let previewTag = view.modelBuilder.text()
|
||||||
|
.withProperties({
|
||||||
|
value: 'Feature Preview'
|
||||||
|
}).component();
|
||||||
this.alertsTable = view.modelBuilder.table()
|
this.alertsTable = view.modelBuilder.table()
|
||||||
.withProperties({
|
.withProperties({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -282,6 +295,9 @@ export class JobDialog extends AgentDialog<JobData> {
|
|||||||
|
|
||||||
let formModel = view.modelBuilder.formContainer()
|
let formModel = view.modelBuilder.formContainer()
|
||||||
.withFormItems([{
|
.withFormItems([{
|
||||||
|
component: previewTag,
|
||||||
|
title: ''
|
||||||
|
}, {
|
||||||
component: this.alertsTable,
|
component: this.alertsTable,
|
||||||
title: this.AlertsTopLabelString,
|
title: this.AlertsTopLabelString,
|
||||||
actions: [this.newAlertButton]
|
actions: [this.newAlertButton]
|
||||||
|
|||||||
@@ -368,6 +368,10 @@ export class OperatorDialog extends AgentDialog<OperatorData> {
|
|||||||
private initializeNotificationTab() {
|
private initializeNotificationTab() {
|
||||||
this.notificationsTab.registerContent(async view => {
|
this.notificationsTab.registerContent(async view => {
|
||||||
|
|
||||||
|
let previewTag = view.modelBuilder.text()
|
||||||
|
.withProperties({
|
||||||
|
value: 'Feature Preview'
|
||||||
|
}).component();
|
||||||
this.alertsTable = view.modelBuilder.table()
|
this.alertsTable = view.modelBuilder.table()
|
||||||
.withProperties({
|
.withProperties({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -381,6 +385,9 @@ export class OperatorDialog extends AgentDialog<OperatorData> {
|
|||||||
|
|
||||||
let formModel = view.modelBuilder.formContainer()
|
let formModel = view.modelBuilder.formContainer()
|
||||||
.withFormItems([{
|
.withFormItems([{
|
||||||
|
component: previewTag,
|
||||||
|
title: ''
|
||||||
|
}, {
|
||||||
component: this.alertsTable,
|
component: this.alertsTable,
|
||||||
title: OperatorDialog.AlertsTableLabel
|
title: OperatorDialog.AlertsTableLabel
|
||||||
}]).withLayout({ width: '100%' }).component();
|
}]).withLayout({ width: '100%' }).component();
|
||||||
|
|||||||
Reference in New Issue
Block a user