From abdeda43ca0f04342123e5fd0c908da9fdacbd64 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:29:33 -0500 Subject: [PATCH] UI: hide client count nav link when chrooted listener (#28346) --- ui/app/components/sidebar/nav/cluster.hbs | 6 +++-- ui/app/components/sidebar/nav/cluster.js | 6 ++++- .../components/sidebar/nav/cluster-test.js | 26 +++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/ui/app/components/sidebar/nav/cluster.hbs b/ui/app/components/sidebar/nav/cluster.hbs index 76012058da..30f295d3c2 100644 --- a/ui/app/components/sidebar/nav/cluster.hbs +++ b/ui/app/components/sidebar/nav/cluster.hbs @@ -53,7 +53,7 @@ {{#if (or (and this.isRootNamespace (has-permission "status" routeParams=(array "replication" "raft" "license" "seal"))) - (has-permission "clients" routeParams="activity") + (and (has-permission "clients" routeParams="activity") (not this.hasChrootNamespace)) ) }} Monitoring @@ -81,7 +81,9 @@ data-test-sidebar-nav-link="Raft Storage" /> {{/if}} - {{#if (and (has-permission "clients" routeParams="activity") (not this.cluster.dr.isSecondary))}} + {{#if + (and (has-permission "clients" routeParams="activity") (not this.cluster.dr.isSecondary) (not this.hasChrootNamespace)) + }}