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:
Jeremy Wharton 2023-04-24 05:40:22 -05:00
parent 1aa24b9f0d
commit 80561323a5
2 changed files with 0 additions and 8 deletions

View File

@ -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);

View File

@ -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);