mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
replace deprecated onDidClick() handler in sql projects (#22721)
This commit is contained in:
@@ -481,14 +481,18 @@ export class UpdateProjectFromDatabaseDialog {
|
||||
await this.compareActionRadioButton.updateProperties({ checked: true });
|
||||
this.action = UpdateProjectAction.Compare;
|
||||
|
||||
this.compareActionRadioButton.onDidClick(async () => {
|
||||
this.action = UpdateProjectAction.Compare;
|
||||
this.tryEnableUpdateButton();
|
||||
this.compareActionRadioButton.onDidChangeCheckedState((checked) => {
|
||||
if (checked) {
|
||||
this.action = UpdateProjectAction.Compare;
|
||||
this.tryEnableUpdateButton();
|
||||
}
|
||||
});
|
||||
|
||||
this.updateActionRadioButton.onDidClick(async () => {
|
||||
this.action = UpdateProjectAction.Update;
|
||||
this.tryEnableUpdateButton();
|
||||
this.updateActionRadioButton.onDidChangeCheckedState((checked) => {
|
||||
if (checked) {
|
||||
this.action = UpdateProjectAction.Update;
|
||||
this.tryEnableUpdateButton();
|
||||
}
|
||||
});
|
||||
|
||||
let radioButtons = view.modelBuilder.flexContainer()
|
||||
|
||||
Reference in New Issue
Block a user