Refresh user preferences from back-end when entering the Options view

This commit is contained in:
Bubka
2024-02-18 14:58:21 +01:00
parent f2d4c43239
commit 300d3c3dc8
4 changed files with 28 additions and 2 deletions

View File

@ -4,6 +4,15 @@ const apiClient = httpClientFactory('api')
const webClient = httpClientFactory('web')
export default {
/**
* Get current signed-in user preferences
*
* @returns promise
*/
getPreferences(config = {}) {
return apiClient.get('/user/preferences', { ...config })
},
/**
* Update a user preference
*