mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
UI: Show filters and hide mount attribution when child clients only (#28357)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</Hds::Alert>
|
||||
{{/if}}
|
||||
|
||||
{{#if (or @mountPath this.mountPaths)}}
|
||||
{{#if (or @namespace this.namespaces @mountPath this.mountPaths)}}
|
||||
<Hds::Text::Display @tag="p">
|
||||
Filters
|
||||
</Hds::Text::Display>
|
||||
|
||||
@@ -131,7 +131,7 @@ export default class ClientsCountsPageComponent extends Component<Args> {
|
||||
|
||||
// namespace list for the search-select filter
|
||||
get namespaces() {
|
||||
return this.args.activity.byNamespace
|
||||
return this.args.activity?.byNamespace
|
||||
? this.args.activity.byNamespace
|
||||
.map((namespace) => ({
|
||||
name: namespace.label,
|
||||
|
||||
@@ -21,10 +21,12 @@
|
||||
@responseTimestamp={{@activity.responseTimestamp}}
|
||||
@isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
|
||||
/>
|
||||
<Clients::Attribution
|
||||
@noun="mount"
|
||||
@attribution={{this.namespaceMountAttribution}}
|
||||
@responseTimestamp={{@activity.responseTimestamp}}
|
||||
@isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
|
||||
/>
|
||||
{{#if this.namespaceMountAttribution}}
|
||||
<Clients::Attribution
|
||||
@noun="mount"
|
||||
@attribution={{this.namespaceMountAttribution}}
|
||||
@responseTimestamp={{@activity.responseTimestamp}}
|
||||
@isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
|
||||
/>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user