diff --git a/front/src/store/auth.js b/front/src/store/auth.js index fc44883cd..9aa3d70a5 100644 --- a/front/src/store/auth.js +++ b/front/src/store/auth.js @@ -165,7 +165,6 @@ export default { return new Promise((resolve, reject) => { axios.get('users/me/').then((response) => { logger.default.info('Successfully fetched user profile') - dispatch('ui/initSettings', response.data.settings, { root: true }) dispatch('updateProfile', response.data) dispatch('ui/fetchUnreadNotifications', null, { root: true }) if (response.data.permissions.library) { diff --git a/front/src/store/ui.js b/front/src/store/ui.js index 3adff8b85..738082075 100644 --- a/front/src/store/ui.js +++ b/front/src/store/ui.js @@ -346,12 +346,6 @@ export default { } }, - async initSettings ({ commit }, settings) { - settings = settings || {} - if (settings.language) { - commit('currentLanguage', settings.language) - } - }, websocketEvent ({ state }, event) { const handlers = state.websocketEventsHandlers[event.type] console.log('Dispatching websocket event', event, handlers) diff --git a/front/tests/unit/specs/store/auth.spec.js b/front/tests/unit/specs/store/auth.spec.js index f2f188cd2..3a23aac3b 100644 --- a/front/tests/unit/specs/store/auth.spec.js +++ b/front/tests/unit/specs/store/auth.spec.js @@ -133,7 +133,6 @@ describe('store/auth', () => { { type: 'permission', payload: {key: 'admin', status: true} } ], expectedActions: [ - { type: 'ui/initSettings', payload: { root: true } }, { type: 'updateProfile', payload: profile }, { type: 'ui/fetchUnreadNotifications', payload: null }, { type: 'favorites/fetch', payload: null, options: {root: true} },