diff --git a/ui/app/services/permissions.js b/ui/app/services/permissions.js index 07874b685b..40933c0080 100644 --- a/ui/app/services/permissions.js +++ b/ui/app/services/permissions.js @@ -115,6 +115,9 @@ const API_PATHS = { monitoring: { 'utilization-report': 'sys/utilization-report', }, + billing: { + overview: 'sys/billing/overview', + }, }; // API_PATHS_TO_ROUTE_PARAMS is used to resolve route params for that path when checking permissions for the nav item. diff --git a/ui/lib/core/addon/components/sidebar/nav/cluster.hbs b/ui/lib/core/addon/components/sidebar/nav/cluster.hbs index 58459deea1..810cfdf8ac 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 (and this.version.hasConsumptionBilling (or this.isRootNamespace this.namespace.inHvdAdminNamespace))}} + {{#if (display-nav-item this.routeName.billingDashboard)}}