Enable script button for Server properties (#24201)

* enable script button

* remove override method
This commit is contained in:
Barbara Valdez
2023-08-22 15:42:11 -07:00
committed by GitHub
parent 7ec0899784
commit 41ad39f665

View File

@@ -50,7 +50,6 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
super(objectManagementService, options);
this.dialogObject.customButtons[1].enabled = false;
}
protected override get helpUrl(): string {
@@ -69,11 +68,6 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
return helpUrl;
}
protected override onFormFieldChange(): void {
this.dialogObject.customButtons[1].enabled = false;
this.dialogObject.okButton.enabled = this.isDirty;
}
protected async initializeUI(): Promise<void> {
const serverInfo = await azdata.connection.getServerInfo(this.options.objectExplorerContext.connectionProfile.id);
this.engineEdition = serverInfo.engineEditionId;