mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Enable script button for Server properties (#24201)
* enable script button * remove override method
This commit is contained in:
@@ -50,7 +50,6 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
|||||||
|
|
||||||
constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
|
constructor(objectManagementService: IObjectManagementService, options: ObjectManagementDialogOptions) {
|
||||||
super(objectManagementService, options);
|
super(objectManagementService, options);
|
||||||
this.dialogObject.customButtons[1].enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override get helpUrl(): string {
|
protected override get helpUrl(): string {
|
||||||
@@ -69,11 +68,6 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
|||||||
return helpUrl;
|
return helpUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override onFormFieldChange(): void {
|
|
||||||
this.dialogObject.customButtons[1].enabled = false;
|
|
||||||
this.dialogObject.okButton.enabled = this.isDirty;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected async initializeUI(): Promise<void> {
|
protected async initializeUI(): Promise<void> {
|
||||||
const serverInfo = await azdata.connection.getServerInfo(this.options.objectExplorerContext.connectionProfile.id);
|
const serverInfo = await azdata.connection.getServerInfo(this.options.objectExplorerContext.connectionProfile.id);
|
||||||
this.engineEdition = serverInfo.engineEditionId;
|
this.engineEdition = serverInfo.engineEditionId;
|
||||||
|
|||||||
Reference in New Issue
Block a user