From 9657fc410e042ef53f6958551448bcf525b7b953 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 22 Mar 2021 18:41:42 +0100 Subject: [PATCH] update groups api routes --- app/src/views/group/GroupList.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/views/group/GroupList.vue b/app/src/views/group/GroupList.vue index ed177b81..da1606ab 100644 --- a/app/src/views/group/GroupList.vue +++ b/app/src/views/group/GroupList.vue @@ -227,11 +227,9 @@ export default { }, onUserChanged ({ item, index, name, action }) { - const uri = 'users/groups/' + name - const data = { [action]: item } const from = action === 'add' ? 'availableMembers' : 'members' const to = action === 'add' ? 'members' : 'availableMembers' - api.put(uri, data).then(() => { + api.put(`users/groups/${name}/${action}/${item}`).then(() => { this.normalGroups[name][from].splice(index, 1) this.normalGroups[name][to].push(item) })