Change recompare message after changing options to modal (#17103)

* Change recompare message to modal

* change options to yes and no
This commit is contained in:
Kim Santiago
2021-09-20 16:35:55 -07:00
committed by GitHub
parent 5feb660234
commit 8eafc34194

View File

@@ -66,9 +66,19 @@ export class SchemaCompareOptionsDialog {
this.optionsModel.setObjectTypeOptions();
this.schemaComparison.setDeploymentOptions(this.optionsModel.deploymentOptions);
const yesItem: vscode.MessageItem = {
title: loc.YesButtonText,
isCloseAffordance: true
};
const noItem: vscode.MessageItem = {
title: loc.NoButtonText,
isCloseAffordance: true
};
if (this.optionsChanged) {
vscode.window.showWarningMessage(loc.OptionsChangedMessage, loc.YesButtonText, loc.NoButtonText).then((result) => {
if (result === loc.YesButtonText) {
vscode.window.showInformationMessage(loc.OptionsChangedMessage, { modal: true }, yesItem, noItem).then((result) => {
if (result.title === loc.YesButtonText) {
this.schemaComparison.startCompare();
}
});