open-consul/ui/packages/consul-ui/app/components/certificate/index.hbs

14 lines
298 B
Handlebars

<div class="certificate">
<CopyButton @value={{@item}} @name={{@name}} />
<button
type="button"
class={{concat "visibility" (if this.show " hide" " show")}}
{{on "click" this.setVisibility}}
>
</button>
{{#if this.show}}
<code>{{@item}}</code>
{{else}}
<hr />
{{/if}}
</div>