From 5f3988361d1d77d940cd02d3077de8c09918b24e Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Fri, 26 Mar 2021 08:26:30 -0600 Subject: [PATCH 1/4] change null to empty string --- ui/app/services/namespace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/services/namespace.js b/ui/app/services/namespace.js index d28386ea4dfc..7557dde83f09 100644 --- a/ui/app/services/namespace.js +++ b/ui/app/services/namespace.js @@ -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, From d3c75230d67b5d9a7227c71c1412188579316211 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Fri, 26 Mar 2021 08:52:26 -0600 Subject: [PATCH 2/4] add changelog --- changelog/11213.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/11213.txt diff --git a/changelog/11213.txt b/changelog/11213.txt new file mode 100644 index 000000000000..120582eaf5f2 --- /dev/null +++ b/changelog/11213.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix status menu no showing on login +``` From 1d5506166478e60b3fe0430813351a43243af64e Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Fri, 26 Mar 2021 09:30:11 -0600 Subject: [PATCH 3/4] add conditional --- ui/app/services/namespace.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/app/services/namespace.js b/ui/app/services/namespace.js index 7557dde83f09..badd4eaa4552 100644 --- a/ui/app/services/namespace.js +++ b/ui/app/services/namespace.js @@ -16,6 +16,9 @@ export default Service.extend({ inRootNamespace: equal('path', ROOT_NAMESPACE), setNamespace(path) { + if (!path) { + return ''; + } this.set('path', path); }, From 42bb904667a123af35b3a11d943bb21a15491119 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Fri, 26 Mar 2021 09:33:54 -0600 Subject: [PATCH 4/4] amend to set path --- ui/app/services/namespace.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/services/namespace.js b/ui/app/services/namespace.js index badd4eaa4552..3b8d41189c03 100644 --- a/ui/app/services/namespace.js +++ b/ui/app/services/namespace.js @@ -17,7 +17,8 @@ export default Service.extend({ setNamespace(path) { if (!path) { - return ''; + this.set('path', ''); + return; } this.set('path', path); },