summaryrefslogtreecommitdiffstats
path: root/polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts
diff options
context:
space:
mode:
Diffstat (limited to 'polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts')
-rw-r--r--polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts b/polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts
index 7ed000b4e0..d352583e10 100644
--- a/polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts
+++ b/polygerrit-ui/app/elements/shared/gr-shell-command/gr-shell-command.ts
@@ -81,14 +81,15 @@ export class GrShellCommand extends LitElement {
return html` <label>${label}</label>
<div class="commandContainer">
<gr-copy-clipboard
- .text="${this.command}"
+ .text=${this.command}
hasTooltip
- buttonTitle="${this.tooltip}"
+ buttonTitle=${this.tooltip}
></gr-copy-clipboard>
</div>`;
}
- focusOnCopy() {
+ async focusOnCopy() {
+ await this.updateComplete;
const copyClipboard = queryAndAssert<GrCopyClipboard>(
this,
'gr-copy-clipboard'