mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Change Cancel button label to Back for inner dialogs. (#24537)
This commit is contained in:
@@ -56,6 +56,7 @@ export const allFiles = localize('objectManagement.allFiles', "All Files");
|
||||
export const labelSelectFolder = localize('objectManagement.labelSelectFolder', "Select Folder");
|
||||
export const DataFileLabel = localize('objectManagement.dataFileLabel', "Data");
|
||||
export const LogFileLabel = localize('objectManagement.logFileLabel', "Log");
|
||||
export const BackButtonLabel = localize('objectManagement.backButtonLabel', "Back");
|
||||
|
||||
export function ExplicitPermissionsTableLabelSelected(name: string): string { return localize('objectManagement.explicitPermissionsTableLabelSelected', "Explicit permissions for: {0}", name); }
|
||||
export function EffectivePermissionsTableLabelSelected(name: string): string { return localize('objectManagement.effectivePermissionsTableLabelSelected', "Effective permissions for: {0}", name); }
|
||||
|
||||
@@ -47,6 +47,11 @@ export class FindObjectDialog extends DialogBase<FindObjectDialogResult> {
|
||||
constructor(private readonly objectManagementService: mssql.IObjectManagementService, private readonly options: FindObjectDialogOptions) {
|
||||
super(options.title, 'FindObjectDialog');
|
||||
this.dialogObject.okButton.label = localizedConstants.SelectText;
|
||||
this.dialogObject.okButton.enabled = false;
|
||||
|
||||
// Relabel Cancel button to Back, since clicking cancel on an inner dialog makes it seem like it would close the whole dialog overall
|
||||
this.dialogObject.cancelButton.label = localizedConstants.BackButtonLabel;
|
||||
|
||||
this.result = {
|
||||
selectedObjects: []
|
||||
};
|
||||
@@ -54,7 +59,6 @@ export class FindObjectDialog extends DialogBase<FindObjectDialogResult> {
|
||||
}
|
||||
|
||||
protected override async initialize(): Promise<void> {
|
||||
this.dialogObject.okButton.enabled = false;
|
||||
this.objectTypesTable = this.createTableList<ObjectTypeInfo>(localizedConstants.ObjectTypesText,
|
||||
[localizedConstants.ObjectTypeText],
|
||||
this.options.objectTypes,
|
||||
|
||||
@@ -40,6 +40,9 @@ export class ObjectSelectionMethodDialog extends DialogBase<ObjectSelectionMetho
|
||||
schema: undefined,
|
||||
objectTypes: []
|
||||
};
|
||||
|
||||
// Relabel Cancel button to Back, since clicking cancel on an inner dialog makes it seem like it would close the whole dialog overall
|
||||
this.dialogObject.cancelButton.label = localizedConstants.BackButtonLabel;
|
||||
}
|
||||
|
||||
protected override async initialize(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user