mirror of https://github.com/status-im/consul.git
ui: Add copyable IDs to the Role and Policy views (#9296)
This commit is contained in:
commit
b5abbf122b
|
@ -0,0 +1,3 @@
|
|||
```release-note:feature
|
||||
ui: add copyable IDs to the Role and Policy views
|
||||
```
|
|
@ -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}}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue