mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
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:
@@ -66,9 +66,19 @@ export class SchemaCompareOptionsDialog {
|
|||||||
this.optionsModel.setObjectTypeOptions();
|
this.optionsModel.setObjectTypeOptions();
|
||||||
this.schemaComparison.setDeploymentOptions(this.optionsModel.deploymentOptions);
|
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) {
|
if (this.optionsChanged) {
|
||||||
vscode.window.showWarningMessage(loc.OptionsChangedMessage, loc.YesButtonText, loc.NoButtonText).then((result) => {
|
vscode.window.showInformationMessage(loc.OptionsChangedMessage, { modal: true }, yesItem, noItem).then((result) => {
|
||||||
if (result === loc.YesButtonText) {
|
if (result.title === loc.YesButtonText) {
|
||||||
this.schemaComparison.startCompare();
|
this.schemaComparison.startCompare();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user