Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-11-02 22:16:39 +0300
committerdartcafe <github@dartcafe.de>2020-11-02 22:16:39 +0300
commit24db4090cb59b004fda183a161c2738976b633ae (patch)
tree23fc0ab98422aec08c1463ac8d729b8fd89fb4ac /src/js/store/modules/subModules/shares.js
parent7654af6c8765e6b3d3cbe0091c325cd3abf5ff84 (diff)
avoid concat
Diffstat (limited to 'src/js/store/modules/subModules/shares.js')
-rw-r--r--src/js/store/modules/subModules/shares.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/store/modules/subModules/shares.js b/src/js/store/modules/subModules/shares.js
index 8fa2a7f5..5769af00 100644
--- a/src/js/store/modules/subModules/shares.js
+++ b/src/js/store/modules/subModules/shares.js
@@ -88,7 +88,7 @@ const getters = {
const actions = {
list(context) {
- const endPoint = 'apps/polls/poll/'.concat(context.rootState.poll.id, '/shares')
+ const endPoint = 'apps/polls/poll/' + context.rootState.poll.id + '/shares'
return axios.get(generateUrl(endPoint))
.then((response) => {
context.commit('set', response.data)
@@ -101,7 +101,7 @@ const actions = {
},
add(context, payload) {
- const endPoint = 'apps/polls/poll/'.concat(context.rootState.poll.id, '/share')
+ const endPoint = 'apps/polls/poll/' + context.rootState.poll.id + '/share'
return axios.post(generateUrl(endPoint), payload.share)
.then((response) => {
@@ -131,7 +131,7 @@ const actions = {
},
delete(context, payload) {
- const endPoint = 'apps/polls/share/delete/'.concat(payload.share.token)
+ const endPoint = 'apps/polls/share/delete/' + payload.share.token
context.commit('delete', { share: payload.share })
return axios.delete(generateUrl(endPoint))
@@ -148,7 +148,7 @@ const actions = {
},
sendInvitation(context, payload) {
- const endPoint = 'apps/polls/share/send/'.concat(payload.share.token)
+ const endPoint = 'apps/polls/share/send/' + payload.share.token
return axios.post(generateUrl(endPoint))
.then((response) => {
@@ -164,7 +164,7 @@ const actions = {
},
resolveGroup(context, payload) {
- const endPoint = 'apps/polls/share/resolveGroup/'.concat(payload.share.token)
+ const endPoint = 'apps/polls/share/resolveGroup/' + payload.share.token
return axios.get(generateUrl(endPoint))
.catch((error) => {