Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/26985.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Prevent perpetual loading screen when Vault needs initialization
```
4 changes: 4 additions & 0 deletions ui/app/routes/vault/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,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
Expand Down