mirror of https://github.com/status-im/consul.git
56 lines
2.1 KiB
Handlebars
56 lines
2.1 KiB
Handlebars
{{#app-view class="acl edit" loading=isLoading}}
|
|
{{#block-slot name='notification' as |status type|}}
|
|
{{partial 'dc/acls/notifications'}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='breadcrumbs'}}
|
|
<ol>
|
|
<li><a data-test-back href={{href-to 'dc.acls'}}>All Tokens</a></li>
|
|
</ol>
|
|
{{/block-slot}}
|
|
{{#block-slot name='header'}}
|
|
<h1>
|
|
{{#if item.Name }}
|
|
{{item.Name}}
|
|
{{else}}
|
|
New token
|
|
{{/if}}
|
|
</h1>
|
|
{{/block-slot}}
|
|
{{#block-slot name='actions'}}
|
|
{{#if (not create) }}
|
|
{{#feedback-dialog type='inline'}}
|
|
{{#block-slot name='action' as |success error|}}
|
|
{{#copy-button success=(action success) error=(action error) clipboardText=item.ID title='copy token ID to clipboard'}}
|
|
Copy token ID
|
|
{{/copy-button}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='success' as |transition|}}
|
|
<p class={{transition}}>
|
|
Copied token ID!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{#block-slot name='error' as |transition|}}
|
|
<p class={{transition}}>
|
|
Sorry, something went wrong!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{/feedback-dialog}}
|
|
<button type="button" {{ action "clone" item }}>Clone token</button>
|
|
{{#confirmation-dialog message='Are you sure you want to use this ACL token?'}}
|
|
{{#block-slot name='action' as |confirm|}}
|
|
<button data-test-use type="button" {{ action confirm 'use' item }}>Use token</button>
|
|
{{/block-slot}}
|
|
{{#block-slot name='dialog' as |execute cancel message|}}
|
|
<p>
|
|
{{message}}
|
|
</p>
|
|
<button type="button" class="type-delete" {{action execute}}>Confirm Use</button>
|
|
<button type="button" class="type-cancel" {{action cancel}}>Cancel</button>
|
|
{{/block-slot}}
|
|
{{/confirmation-dialog}}
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='content'}}
|
|
{{ partial 'dc/acls/form'}}
|
|
{{/block-slot}}
|
|
{{/app-view}} |