ui: Add copyable IDs to the Role and Policy views

This commit is contained in:
John Cowen 2020-11-30 14:42:57 +00:00
parent 17a86be022
commit d010d1b6d0
2 changed files with 20 additions and 0 deletions

View File

@ -42,6 +42,16 @@
</h1>
</BlockSlot>
<BlockSlot @name="content">
{{#if (not create) }}
<div class="definition-table">
<dl>
<dt>Policy ID</dt>
<dd>
<CopyButton @value={{item.ID}} @name="Policy ID" @position="top-start" /> {{item.ID}}
</dd>
</dl>
</div>
{{/if}}
{{#if (eq (policy/typeof item) 'policy-management')}}
{{ partial 'dc/acls/policies/view'}}
{{else}}

View File

@ -38,6 +38,16 @@
</h1>
</BlockSlot>
<BlockSlot @name="content">
{{#if (not create) }}
<div class="definition-table">
<dl>
<dt>Role ID</dt>
<dd>
<CopyButton @value={{item.ID}} @name="Role ID" @position="top-start" /> {{item.ID}}
</dd>
</dl>
</div>
{{/if}}
{{ partial 'dc/acls/roles/form'}}
</BlockSlot>
</AppView>