ui: Add copyable IDs to the Role and Policy views

pull/9296/head
John Cowen 2020-11-30 14:42:57 +00:00
parent 9f0f2bd589
commit 62ae1d5f5a
2 changed files with 20 additions and 0 deletions

View File

@ -42,6 +42,16 @@
</h1> </h1>
</BlockSlot> </BlockSlot>
<BlockSlot @name="content"> <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')}} {{#if (eq (policy/typeof item) 'policy-management')}}
{{ partial 'dc/acls/policies/view'}} {{ partial 'dc/acls/policies/view'}}
{{else}} {{else}}

View File

@ -38,6 +38,16 @@
</h1> </h1>
</BlockSlot> </BlockSlot>
<BlockSlot @name="content"> <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'}} {{ partial 'dc/acls/roles/form'}}
</BlockSlot> </BlockSlot>
</AppView> </AppView>