diff --git a/.changelog/9296.txt b/.changelog/9296.txt new file mode 100644 index 0000000000..52f18c43ae --- /dev/null +++ b/.changelog/9296.txt @@ -0,0 +1,3 @@ +```release-note:feature +ui: add copyable IDs to the Role and Policy views +``` diff --git a/ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs b/ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs index 5d932fc7e0..d16ba51679 100644 --- a/ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs +++ b/ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs @@ -42,6 +42,16 @@ +{{#if (not create) }} +
+
+
Policy ID
+
+ {{item.ID}} +
+
+
+{{/if}} {{#if (eq (policy/typeof item) 'policy-management')}} {{ partial 'dc/acls/policies/view'}} {{else}} diff --git a/ui/packages/consul-ui/app/templates/dc/acls/roles/edit.hbs b/ui/packages/consul-ui/app/templates/dc/acls/roles/edit.hbs index fa1ae716ef..61aec9d68d 100644 --- a/ui/packages/consul-ui/app/templates/dc/acls/roles/edit.hbs +++ b/ui/packages/consul-ui/app/templates/dc/acls/roles/edit.hbs @@ -38,6 +38,16 @@
+{{#if (not create) }} +
+
+
Role ID
+
+ {{item.ID}} +
+
+
+{{/if}} {{ partial 'dc/acls/roles/form'}}
\ No newline at end of file