ui: Topology limited access banner (#9041)

* Add limited access banner to Topology tab based on ACLs

* Update to folder structure
pull/9051/head
Kenia 4 years ago committed by GitHub
parent 5788b4c281
commit ed6a2c150f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,16 @@
<Notice
class="topology-metrics-notice-limited-access"
...attributes
@type={{or @type "info"}}
as |notice|>
<notice.Header>
<h3>
Limited Access
</h3>
</notice.Header>
<notice.Body>
<p>
This service may have dependencies you wont see because you dont have access to them.
</p>
</notice.Body>
</Notice>

@ -11,5 +11,6 @@ export default Model.extend({
Upstreams: attr(),
Downstreams: attr(),
Protocol: attr(),
FilteredByACLs: attr(),
meta: attr(),
});

@ -1,5 +1,8 @@
<div id="tags" class="tab-section">
<div role="tabpanel">
{{#if topology.FilteredByACLs}}
<TopologyMetrics::Notice::LimitedAccess />
{{/if}}
{{#if topology}}
<TopologyMetrics
@service={{items.firstObject}}

Loading…
Cancel
Save