Files
threshold-ui/ui/desktop/app/components/hidden-secret/index.hbs
T
Amy Lam aa5b813791 Ran a find and replace
New namespacing. `flight-icons/` replace with `flight-icons/svg/`
2021-09-16 14:24:38 -07:00

24 lines
557 B
Handlebars

<div class='hidden-secret'>
<Rose::Button
@style='ghost'
@iconOnly={{if
this.isHidden
'flight-icons/svg/eye-16'
'flight-icons/svg/eye-off-16'
}}
{{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>