Prevent constant-refresh UI bug (#12896)
This commit is contained in:
parent
677e2a1ca5
commit
3d46021d4e
|
@ -40,6 +40,9 @@ export default Route.extend(ModelBoundaryRoute, ClusterRoute, {
|
|||
const currentTokenName = this.auth.get('currentTokenName');
|
||||
// if no namespace queryParam and user authenticated,
|
||||
// use user's root namespace to redirect to properly param'd url
|
||||
if (this.featureFlagService.managedNamespaceRoot && !this.version.hasNamespaces) {
|
||||
window.alert('Cannot use Cloud Admin Namespace flag with OSS Vault');
|
||||
}
|
||||
if (!namespace && currentTokenName && !Ember.testing) {
|
||||
const storage = getStorage().getItem(currentTokenName);
|
||||
namespace = storage?.userRootNamespace;
|
||||
|
|
Loading…
Reference in New Issue