UI/namespace bug (#11182)
* fix with console to confirm showing * remove console * move order * add changelog
This commit is contained in:
parent
b1b0529b13
commit
f158fd31a2
|
@ -0,0 +1,4 @@
|
|||
```release-note:bug
|
||||
ui: Fix namespace-bug on login
|
||||
```
|
||||
|
|
@ -19,11 +19,9 @@ export default Component.extend({
|
|||
|
||||
namespaceDisplay: computed('normalizedNamespace', 'showLastSegment', function() {
|
||||
let ns = this.normalizedNamespace;
|
||||
if (!ns) return 'root';
|
||||
let showLastSegment = this.showLastSegment;
|
||||
let parts = ns.split('/');
|
||||
if (ns === '') {
|
||||
return 'root';
|
||||
}
|
||||
let parts = ns?.split('/');
|
||||
return showLastSegment ? parts[parts.length - 1] : ns;
|
||||
}),
|
||||
|
||||
|
|
Loading…
Reference in New Issue