Simplify route generation
This commit is contained in:
parent
8330431ae7
commit
688afc6c3d
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ export default new Vuex.Store({
|
|||
setSetting(context, payload) {
|
||||
context.commit('setSetting', payload)
|
||||
return new Promise(function() {
|
||||
Requests.post(OC.generateUrl('apps/tasks/settings/' + payload.type + '/' + payload.value), {})
|
||||
Requests.post(OC.generateUrl('apps/tasks/settings/{type}/{value}', payload), {})
|
||||
})
|
||||
},
|
||||
loadSettings({ commit }) {
|
||||
|
|
Loading…
Reference in a new issue