mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
UI: remove stored token if cluster needs init (#26985)
This commit is contained in:
3
changelog/26985.txt
Normal file
3
changelog/26985.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Prevent perpetual loading screen when Vault needs initialization
|
||||
```
|
||||
@@ -123,6 +123,10 @@ export default Route.extend(ModelBoundaryRoute, ClusterRoute, {
|
||||
afterModel(model, transition) {
|
||||
this._super(...arguments);
|
||||
this.currentCluster.setCluster(model);
|
||||
if (model.needsInit && this.auth.currentToken) {
|
||||
// clear token to prevent infinite load state
|
||||
this.auth.deleteCurrentToken();
|
||||
}
|
||||
|
||||
// Check that namespaces is enabled and if not,
|
||||
// clear the namespace by transition to this route w/o it
|
||||
|
||||
Reference in New Issue
Block a user