diff options
author | dartcafe <github@dartcafe.de> | 2021-10-01 00:40:16 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-10-01 00:40:16 +0300 |
commit | 633a7049af71cd0c71edaac685685d79691f18d7 (patch) | |
tree | c9d5605b27d682f9cd522e50878e979ba6836986 /src/js/mixins/watchPolls.js | |
parent | b5c29104db0a6b6c5e090e88b167b9ec546e5b36 (diff) |
use template literals instead of string concentation
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/mixins/watchPolls.js')
-rw-r--r-- | src/js/mixins/watchPolls.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/mixins/watchPolls.js b/src/js/mixins/watchPolls.js index 494fb785..7213e38b 100644 --- a/src/js/mixins/watchPolls.js +++ b/src/js/mixins/watchPolls.js @@ -81,14 +81,14 @@ export const watchPolls = { if (this.loggedIn) { // if user is an authorized user load polls list - dispatches = [...dispatches, item.table + '/list'] + dispatches = [...dispatches, `${item.table}/list`] } } else if (!this.loggedIn && (item.table === 'shares')) { // if current user is guest and table is shares only reload current share dispatches = [...dispatches, 'share/get'] } else { // otherwise load table - dispatches = [...dispatches, item.table + '/list'] + dispatches = [...dispatches, `${item.table}/list`] } }) @@ -101,9 +101,9 @@ export const watchPolls = { this.retryCounter = 0 this.restart = false if (this.$route.name === 'publicVote') { - this.endPoint = 'apps/polls/s/' + this.$route.params.token + '/watch' + this.endPoint = `apps/polls/s/${this.$route.params.token}/watch` } else { - this.endPoint = 'apps/polls/poll/' + (this.$route.params.id ?? 0) + '/watch' + this.endPoint = `apps/polls/poll/${this.$route.params.id ?? 0}/watch` } }, @@ -126,7 +126,7 @@ export const watchPolls = { handleConnectionError(e) { this.retryCounter += 1 - console.debug('[polls]', e.message ?? 'No response - request aborted - failed request', '-', this.retryCounter + '/' + this.maxTries) + console.debug('[polls]', e.message ?? 'No response - request aborted - failed request', '-', `${this.retryCounter}/${this.maxTries}`) if (e.response) { console.error('[polls]', 'Unhandled error watching polls', e) |