replace deprecated onDidClick() handler in sql projects (#22721)

This commit is contained in:
Kim Santiago
2023-04-13 16:27:59 -07:00
committed by GitHub
parent 87571b2706
commit 3deb163210
2 changed files with 22 additions and 12 deletions

View File

@@ -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()