diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 09:58:00 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 10:00:57 +0200 |
commit | 16e1d57136046fa64c0bb3d13203d76bddb1e2ea (patch) | |
tree | 6a9b45e9a775ca9148f8020ba9090e3c6de33936 /src/store | |
parent | d72448c5eb0b7273f40e1ce701f26110588cab0e (diff) |
Remove store usage in settingsService
Adjust setPlaySounds service function to not rely on the store.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/soundsStore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/store/soundsStore.js b/src/store/soundsStore.js index 41cb05712..cf295b57a 100644 --- a/src/store/soundsStore.js +++ b/src/store/soundsStore.js @@ -73,9 +73,9 @@ const actions = { * @param {object} context default store context; * @param {boolean} enabled Whether sounds should be played */ - async setPlaySounds({ commit }, enabled) { - await setPlaySounds(status) - commit('setPlaySounds', enabled) + async setPlaySounds(context, enabled) { + await setPlaySounds(!context.state.userId, status) + context.commit('setPlaySounds', enabled) }, } |