Skip to content

Commit

Permalink
UI: Fix status menu bug (#11213)
Browse files Browse the repository at this point in the history
* change null to empty string

* add changelog

* add conditional

* amend to set path
  • Loading branch information
Monkeychip committed Mar 26, 2021
1 parent fe94bae commit f1cb42e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/11213.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix status menu no showing on login
```
6 changes: 5 additions & 1 deletion ui/app/services/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ 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,

inRootNamespace: equal('path', ROOT_NAMESPACE),

setNamespace(path) {
if (!path) {
this.set('path', '');
return;
}
this.set('path', path);
},

Expand Down

0 comments on commit f1cb42e

Please sign in to comment.