add link to copy current token from user status bar (#6063)
This commit is contained in:
parent
159f0c1b0a
commit
3bacca85b1
|
@ -34,6 +34,16 @@
|
||||||
Revoke token
|
Revoke token
|
||||||
{{/confirm-action}}
|
{{/confirm-action}}
|
||||||
</li>
|
</li>
|
||||||
|
<li class="action">
|
||||||
|
<CopyButton
|
||||||
|
@clipboardText={{auth.currentToken}}
|
||||||
|
class="link button"
|
||||||
|
@buttonType="button"
|
||||||
|
@success={{action (set-flash-message 'Token copied!')}}
|
||||||
|
>
|
||||||
|
Copy token
|
||||||
|
</CopyButton>
|
||||||
|
</li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li class="action text-right">
|
<li class="action text-right">
|
||||||
{{#confirm-action
|
{{#confirm-action
|
||||||
|
@ -50,6 +60,16 @@
|
||||||
Revoke token
|
Revoke token
|
||||||
{{/confirm-action}}
|
{{/confirm-action}}
|
||||||
</li>
|
</li>
|
||||||
|
<li class="action">
|
||||||
|
<CopyButton
|
||||||
|
@clipboardText={{auth.currentToken}}
|
||||||
|
class="link button"
|
||||||
|
@buttonType="button"
|
||||||
|
@success={{action (set-flash-message 'Token copied!')}}
|
||||||
|
>
|
||||||
|
Copy token
|
||||||
|
</CopyButton>
|
||||||
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li class="action">
|
<li class="action">
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
{{#basic-dropdown-hover horizontalPosition="auto-left" verticalPosition="below" renderInPlace=media.isMobile as |d|}}
|
{{#basic-dropdown-hover horizontalPosition="auto-left" verticalPosition="below" renderInPlace=media.isMobile as |d|}}
|
||||||
{{#d.trigger tagName=(if (eq type "replication") "span" "button") class=(if (eq type "replication") "" "button is-transparent")}}
|
{{#d.trigger tagName=(if (eq type "replication") "span" "button") class=(if (eq type "replication") "" "button is-transparent")}}
|
||||||
{{i-con
|
<ICon @glyph={{glyphName}} @size=24 @aria-label={{ariaLabel}} />
|
||||||
glyph=glyphName
|
|
||||||
size=24
|
|
||||||
aria-label=ariaLabel
|
|
||||||
}}
|
|
||||||
<div class="status-menu-label">
|
<div class="status-menu-label">
|
||||||
{{label}}
|
{{label}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue