mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
add title to back button (#1154)
This commit is contained in:
@@ -20,6 +20,7 @@ import { IContextKeyService, RawContextKey, IContextKey } from 'vs/platform/cont
|
|||||||
import { Button } from 'sql/base/browser/ui/button/button';
|
import { Button } from 'sql/base/browser/ui/button/button';
|
||||||
import * as TelemetryUtils from 'sql/common/telemetryUtilities';
|
import * as TelemetryUtils from 'sql/common/telemetryUtilities';
|
||||||
import * as TelemetryKeys from 'sql/common/telemetryKeys';
|
import * as TelemetryKeys from 'sql/common/telemetryKeys';
|
||||||
|
import { localize } from 'vs/nls';
|
||||||
|
|
||||||
export const MODAL_SHOWING_KEY = 'modalShowing';
|
export const MODAL_SHOWING_KEY = 'modalShowing';
|
||||||
export const MODAL_SHOWING_CONTEXT = new RawContextKey<Array<string>>(MODAL_SHOWING_KEY, []);
|
export const MODAL_SHOWING_CONTEXT = new RawContextKey<Array<string>>(MODAL_SHOWING_KEY, []);
|
||||||
@@ -155,6 +156,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
|||||||
modalHeader.div({ class: 'modal-go-back' }, (cellContainer) => {
|
modalHeader.div({ class: 'modal-go-back' }, (cellContainer) => {
|
||||||
this._backButton = new Button(cellContainer);
|
this._backButton = new Button(cellContainer);
|
||||||
this._backButton.icon = 'backButtonIcon';
|
this._backButton.icon = 'backButtonIcon';
|
||||||
|
this._backButton.title = localize('modalBack', "Back");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this._modalOptions.hasTitleIcon) {
|
if (this._modalOptions.hasTitleIcon) {
|
||||||
|
|||||||
Reference in New Issue
Block a user