Skip to content

Commit

Permalink
fix API token data not refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
a110605 committed Dec 3, 2024
1 parent c36efd6 commit 338b9e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,11 @@ export const actions = {
const isRancherInHarvester = (rancherManagerSupport?.value || rancherManagerSupport?.default) === 'true';

commit('isRancherInHarvester', isRancherInHarvester);
// standalone harvester cluster needs to subscribe rancher socket to get latest token data update
if (getters['isSingleProduct']) {
console.log('Detect standalone harvester, subscribe rancher socket'); // eslint-disable-line no-console
await dispatch('rancher/subscribe');
}
}

const pl = res.settings?.find(x => x.id === 'ui-pl')?.value;
Expand Down

0 comments on commit 338b9e2

Please sign in to comment.