Skip to content

Commit

Permalink
Merge pull request #1239 from harvester/mergify/bp/release-harvester-…
Browse files Browse the repository at this point in the history
…v1.4/pr-1236

fix API token data not refresh issue (backport #1236)
  • Loading branch information
a110605 authored Dec 10, 2024
2 parents 335b2e0 + 7a85726 commit ed7dba7
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 ed7dba7

Please sign in to comment.