UI: Fix status menu bug (#11213)

* change null to empty string

* add changelog

* add conditional

* amend to set path
This commit is contained in:
Angel Garbarino 2021-03-26 09:53:33 -06:00 committed by GitHub
parent 6a92a8bd78
commit 9097ee0bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

3
changelog/11213.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix status menu no showing on login
```

View File

@ -8,7 +8,7 @@ export default Service.extend({
auth: service(),
userRootNamespace: alias('auth.authData.userRootNamespace'),
//populated by the query param on the cluster route
path: null,
path: '',
// list of namespaces available to the current user under the
// current namespace
accessibleNamespaces: null,
@ -16,6 +16,10 @@ export default Service.extend({
inRootNamespace: equal('path', ROOT_NAMESPACE),
setNamespace(path) {
if (!path) {
this.set('path', '');
return;
}
this.set('path', path);
},