Files
threshold-ui/ui/desktop/app/components/hidden-secret/index.hbs
T

20 lines
514 B
Handlebars

<div class='hidden-secret'>
<Rose::Button
@style='ghost'
@iconOnly={{if this.isHidden 'visibility-show' 'visibility-hide'}}
{{on 'click' this.toggleSecretVisibility}}
>
{{t 'actions.toggle-secret'}}
</Rose::Button>
<Copyable
@text={{@secret}}
@buttonText={{t 'actions.copy-to-clipboard'}}
@acknowledgeText={{t 'states.copied'}}
>
{{#if this.isHidden}}
{{@secret}}
{{else}}
<span class='secret-mask'>{{this.textMask}}</span>
{{/if}}
</Copyable>
</div>