Simplify route generation

This commit is contained in:
Raimund Schlüßler 2018-09-02 17:38:29 +02:00
parent 8330431ae7
commit 688afc6c3d
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -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 }) {