mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
replace deprecated onDidClick() handler in sql projects (#22721)
This commit is contained in:
@@ -206,8 +206,10 @@ export class AddDatabaseReferenceDialog {
|
||||
label: constants.projectLabel
|
||||
}).component();
|
||||
|
||||
this.projectRadioButton.onDidClick(() => {
|
||||
this.projectRadioButtonClick();
|
||||
this.projectRadioButton.onDidChangeCheckedState((checked) => {
|
||||
if (checked) {
|
||||
this.projectRadioButtonClick();
|
||||
}
|
||||
});
|
||||
|
||||
this.systemDatabaseRadioButton = this.view!.modelBuilder.radioButton()
|
||||
@@ -216,8 +218,10 @@ export class AddDatabaseReferenceDialog {
|
||||
label: constants.systemDatabase
|
||||
}).component();
|
||||
|
||||
this.systemDatabaseRadioButton.onDidClick(() => {
|
||||
this.systemDbRadioButtonClick();
|
||||
this.systemDatabaseRadioButton.onDidChangeCheckedState((checked) => {
|
||||
if (checked) {
|
||||
this.systemDbRadioButtonClick();
|
||||
}
|
||||
});
|
||||
|
||||
const dacpacRadioButton = this.view!.modelBuilder.radioButton()
|
||||
@@ -226,8 +230,10 @@ export class AddDatabaseReferenceDialog {
|
||||
label: constants.dacpacText
|
||||
}).component();
|
||||
|
||||
dacpacRadioButton.onDidClick(() => {
|
||||
this.dacpacRadioButtonClick();
|
||||
dacpacRadioButton.onDidChangeCheckedState((checked) => {
|
||||
if (checked) {
|
||||
this.dacpacRadioButtonClick();
|
||||
}
|
||||
});
|
||||
|
||||
if (this.projectDropdown?.values?.length) {
|
||||
|
||||
Reference in New Issue
Block a user