From eec654c6d6e34115bb0ff27eefe8e1bdcca60b33 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Thu, 23 Apr 2026 13:23:57 -0400 Subject: [PATCH] [UI][VAULT-44070] Hide billing metrics sidebar link from namespaces other than root and admin (#14186) (#14229) * Only show dashboard if user is in hvd namespace and root namespace * Add tests.. * Fix test names Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com> --- .../addon/components/sidebar/nav/cluster.hbs | 2 +- .../components/sidebar/nav/cluster-test.js | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ui/lib/core/addon/components/sidebar/nav/cluster.hbs b/ui/lib/core/addon/components/sidebar/nav/cluster.hbs index 2769c9dbcd..58459deea1 100644 --- a/ui/lib/core/addon/components/sidebar/nav/cluster.hbs +++ b/ui/lib/core/addon/components/sidebar/nav/cluster.hbs @@ -59,7 +59,7 @@ data-test-sidebar-nav-link="Client count" /> {{/if}} - {{#if this.version.hasConsumptionBilling}} + {{#if (and this.version.hasConsumptionBilling (or this.isRootNamespace this.namespace.inHvdAdminNamespace))}}