Commit e3b734a8 authored by Kasper Seweryn's avatar Kasper Seweryn 🥞 Committed by Kasper Seweryn
Browse files

Remove initSettings

parent c4f01b3d
......@@ -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) {
......
......@@ -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)
......
......@@ -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} },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment