mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -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.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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user