Browse Source

ui: Cope with the possibility of receiving no namespaces (#6975)

pull/6966/head
John Cowen 5 years ago committed by GitHub
parent
commit
18bafaec35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-v2/app/templates/components/hashicorp-consul.hbs

2
ui-v2/app/templates/components/hashicorp-consul.hbs

@ -11,7 +11,7 @@
<nav>
{{#if dc}}
<ul>
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
{{#if (and (env 'CONSUL_NSPACES_ENABLED') (gt nspaces.length 0))}}
<li>
{{#if (and (eq nspaces.length 1) (not canManageNspaces)) }}
<span data-test-nspace-selected={{nspace.Name}}>{{nspace.Name}}</span>

Loading…
Cancel
Save