From ed6a2c150f83220ad03a152f3b2c6fabacb3806d Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Tue, 27 Oct 2020 10:04:22 -0400 Subject: [PATCH] ui: Topology limited access banner (#9041) * Add limited access banner to Topology tab based on ACLs * Update to folder structure --- .../topology-metrics/notice/limited-access.hbs | 16 ++++++++++++++++ ui/packages/consul-ui/app/models/topology.js | 1 + .../app/templates/dc/services/show/topology.hbs | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 ui/packages/consul-ui/app/components/topology-metrics/notice/limited-access.hbs diff --git a/ui/packages/consul-ui/app/components/topology-metrics/notice/limited-access.hbs b/ui/packages/consul-ui/app/components/topology-metrics/notice/limited-access.hbs new file mode 100644 index 0000000000..733418b6a5 --- /dev/null +++ b/ui/packages/consul-ui/app/components/topology-metrics/notice/limited-access.hbs @@ -0,0 +1,16 @@ + + +

+ Limited Access +

+
+ +

+ This service may have dependencies you won’t see because you don’t have access to them. +

+
+
\ No newline at end of file diff --git a/ui/packages/consul-ui/app/models/topology.js b/ui/packages/consul-ui/app/models/topology.js index 5f8d3f3b08..39b3c2d86f 100644 --- a/ui/packages/consul-ui/app/models/topology.js +++ b/ui/packages/consul-ui/app/models/topology.js @@ -11,5 +11,6 @@ export default Model.extend({ Upstreams: attr(), Downstreams: attr(), Protocol: attr(), + FilteredByACLs: attr(), meta: attr(), }); diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs index fda0cfbb0c..45ce9b9fa5 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs @@ -1,5 +1,8 @@
+ {{#if topology.FilteredByACLs}} + + {{/if}} {{#if topology}}