web/satellite: remove unnecessary session inactivity timer setup
The dashboard area component would set up the session inactivity timers after it was unmounted, conflicting with those that were started by dashboards mounted afterward. This issue caused session refresh requests to be sent more often than they should have been. Additionally, expiration of the old set of timers would clear newer ones before they were due to expire. Change-Id: I86a73f13dab4cd8f979181b29002eb3b3e6e8bac
This commit is contained in:
parent
1aa24b9f0d
commit
80561323a5
@ -687,10 +687,6 @@ onMounted(async () => {
|
||||
await usersStore.getSettings();
|
||||
setupSessionTimers();
|
||||
} catch (error) {
|
||||
usersStore.$onAction((action) => {
|
||||
if (action.name === 'login') setupSessionTimers();
|
||||
});
|
||||
|
||||
if (!(error instanceof ErrorUnauthorized)) {
|
||||
appStore.changeState(FetchState.ERROR);
|
||||
await notify.error(error.message, AnalyticsErrorEventSource.OVERALL_APP_WRAPPER_ERROR);
|
||||
|
@ -567,10 +567,6 @@ onMounted(async () => {
|
||||
await usersStore.getSettings();
|
||||
setupSessionTimers();
|
||||
} catch (error) {
|
||||
usersStore.$onAction((action) => {
|
||||
if (action.name === 'login') setupSessionTimers();
|
||||
});
|
||||
|
||||
if (!(error instanceof ErrorUnauthorized)) {
|
||||
appStore.changeState(FetchState.ERROR);
|
||||
await notify.error(error.message, AnalyticsErrorEventSource.ALL_PROJECT_DASHBOARD);
|
||||
|
Loading…
Reference in New Issue
Block a user