From 62ae1d5f5a103b86436b08ab9fa38bcb6b04401a Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 30 Nov 2020 14:42:57 +0000 Subject: [PATCH 1/2] ui: Add copyable IDs to the Role and Policy views --- .../consul-ui/app/templates/dc/acls/policies/edit.hbs | 10 ++++++++++ .../consul-ui/app/templates/dc/acls/roles/edit.hbs | 10 ++++++++++ 2 files changed, 20 insertions(+) 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 From 54f48d921c0ed6cf252d174e2466ea07754775a9 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 30 Nov 2020 17:27:39 +0000 Subject: [PATCH 2/2] Changelog --- .changelog/9296.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/9296.txt 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 +```