ui: Topology limited access banner (#9041)

* Add limited access banner to Topology tab based on ACLs

* Update to folder structure
This commit is contained in:
Kenia 2020-10-27 10:04:22 -04:00 committed by GitHub
parent 5788b4c281
commit ed6a2c150f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -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>

View File

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

View File

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