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:
parent
f51ecd6f36
commit
b7f81249e8
|
@ -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 won’t see because you don’t have access to them.
|
||||||
|
</p>
|
||||||
|
</notice.Body>
|
||||||
|
</Notice>
|
|
@ -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(),
|
||||||
});
|
});
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue