UI: Show filters and hide mount attribution when child clients only (#28357)

This commit is contained in:
Chelsea Shaw
2024-09-11 13:56:07 -05:00
committed by GitHub
parent 2b8d079754
commit c68cdaef10
3 changed files with 10 additions and 8 deletions

View File

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

View File

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

View File

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