diff --git a/CHANGELOG.md b/CHANGELOG.md index ba4e110c8..3884aec86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ BUG FIXES: * ui: Fixed order of column headers in client allocations table. [[GH-8409](https://github.com/hashicorp/nomad/pull/8409)] + * ui: Fixed stale namespaces after changing acl tokens. [[GH-8413](https://github.com/hashicorp/nomad/issues/8413)] + * ui: Fixed missing namespace query param after changing acl tokens [[GH-8413](https://github.com/hashicorp/nomad/issues/8413)] * vault: Fixed a bug where vault identity policies not considered in permissions check [[GH-7732](https://github.com/hashicorp/nomad/issues/7732)] ## 0.12.0 (July 9, 2020) diff --git a/ui/app/controllers/settings/tokens.js b/ui/app/controllers/settings/tokens.js index 956268374..541431fb4 100644 --- a/ui/app/controllers/settings/tokens.js +++ b/ui/app/controllers/settings/tokens.js @@ -31,6 +31,8 @@ export default class Tokens extends Controller { tokenIsValid: false, tokenIsInvalid: false, }); + // Clear out all data to ensure only data the anonymous token is privileged to see is shown + this.system.reset(); this.resetStore(); this.token.reset(); } @@ -44,8 +46,7 @@ export default class Tokens extends Controller { TokenAdapter.findSelf().then( () => { - // Clear out all data to ensure only data the new token is privileged to - // see is shown + // Clear out all data to ensure only data the new token is privileged to see is shown this.system.reset(); this.resetStore(); diff --git a/ui/app/services/system.js b/ui/app/services/system.js index 3b293d5c4..1730777b5 100644 --- a/ui/app/services/system.js +++ b/ui/app/services/system.js @@ -128,5 +128,6 @@ export default class SystemService extends Service { reset() { this.set('activeNamespace', null); + this.notifyPropertyChange('namespaces'); } } diff --git a/ui/app/templates/settings/tokens.hbs b/ui/app/templates/settings/tokens.hbs index df600d93d..ef429db2e 100644 --- a/ui/app/templates/settings/tokens.hbs +++ b/ui/app/templates/settings/tokens.hbs @@ -12,7 +12,7 @@
Tokens are stored client-side in local storage. This will persist your token across sessions. You can manually clear your token here.