mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix the issue that error dialog is not showing (#12061)
This commit is contained in:
@@ -75,9 +75,11 @@ export class ErrorMessageDialog extends Modal {
|
|||||||
|
|
||||||
private createCopyButton() {
|
private createCopyButton() {
|
||||||
let copyButtonLabel = localize('copyDetails', "Copy details");
|
let copyButtonLabel = localize('copyDetails', "Copy details");
|
||||||
if (this._messageDetails) {
|
this._copyButton = this.addFooterButton(copyButtonLabel, () => {
|
||||||
this._copyButton = this.addFooterButton(copyButtonLabel, () => this._clipboardService.writeText(this._messageDetails!).catch(err => onUnexpectedError(err)), 'left');
|
if (this._messageDetails) {
|
||||||
}
|
this._clipboardService.writeText(this._messageDetails!).catch(err => onUnexpectedError(err));
|
||||||
|
}
|
||||||
|
}, 'left');
|
||||||
this._copyButton!.icon = 'codicon scriptToClipboard';
|
this._copyButton!.icon = 'codicon scriptToClipboard';
|
||||||
this._copyButton!.element.title = copyButtonLabel;
|
this._copyButton!.element.title = copyButtonLabel;
|
||||||
this._register(attachButtonStyler(this._copyButton!, this._themeService, { buttonBackground: SIDE_BAR_BACKGROUND, buttonHoverBackground: SIDE_BAR_BACKGROUND, buttonForeground: SIDE_BAR_FOREGROUND }));
|
this._register(attachButtonStyler(this._copyButton!, this._themeService, { buttonBackground: SIDE_BAR_BACKGROUND, buttonHoverBackground: SIDE_BAR_BACKGROUND, buttonForeground: SIDE_BAR_FOREGROUND }));
|
||||||
|
|||||||
Reference in New Issue
Block a user