mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 09:35:38 -05:00
Change OK button label based on whether the dialog is creating a new object or updating an existing one. (#23908)
This commit is contained in:
@@ -31,7 +31,7 @@ export interface ObjectManagementDialogOptions extends ScriptableDialogOptions {
|
||||
}
|
||||
|
||||
export abstract class ObjectManagementDialogBase<ObjectInfoType extends ObjectManagement.SqlObject, ViewInfoType extends ObjectManagement.ObjectViewInfo<ObjectInfoType>> extends ScriptableDialogBase<ObjectManagementDialogOptions> {
|
||||
private _contextId: string;
|
||||
private readonly _contextId: string;
|
||||
private _viewInfo: ViewInfoType;
|
||||
private _originalObjectInfo: ObjectInfoType;
|
||||
|
||||
@@ -46,6 +46,7 @@ export abstract class ObjectManagementDialogBase<ObjectInfoType extends ObjectMa
|
||||
}
|
||||
super(dialogTitle, dialogName, options);
|
||||
this._contextId = generateUuid();
|
||||
this.dialogObject.okButton.label = options.isNewObject ? localizedConstants.CreateObjectLabel : localizedConstants.ApplyUpdatesLabel;
|
||||
}
|
||||
|
||||
protected postInitializeData(): void { }
|
||||
|
||||
Reference in New Issue
Block a user