mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
UI: Fix status menu bug (#11213)
* change null to empty string * add changelog * add conditional * amend to set path
This commit is contained in:
3
changelog/11213.txt
Normal file
3
changelog/11213.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fix status menu no showing on login
|
||||
```
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user