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>2021-02-27 16:21:22 +0300
committerdartcafe <github@dartcafe.de>2021-02-27 16:21:22 +0300
commit45ca1fa8e97ccf6e35fe5a2516b6b68b04f87a3d (patch)
tree88c745ccf9535d1ce59ce41d6b9a97d89fe11b75 /src/js/components/Base
parent09be13f03bcb7b149d6e942ead21949eb7975af1 (diff)
js code maintenance and tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Base')
-rw-r--r--src/js/components/Base/ParticipantsList.vue2
-rw-r--r--src/js/components/Base/PersonalLink.vue4
-rw-r--r--src/js/components/Base/PublicEmail.vue2
-rw-r--r--src/js/components/Base/PublicRegisterModal.vue6
-rw-r--r--src/js/components/Base/UserSearch.vue2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/js/components/Base/ParticipantsList.vue b/src/js/components/Base/ParticipantsList.vue
index a2017df0..a2a9126b 100644
--- a/src/js/components/Base/ParticipantsList.vue
+++ b/src/js/components/Base/ParticipantsList.vue
@@ -70,7 +70,7 @@ export default {
const response = await this.$store.dispatch('poll/getParticipantsEmailAddresses', { pollId: this.poll.id })
await this.$copyText(response.data)
showSuccess(t('polls', 'Link copied to clipboard'))
- } catch (e) {
+ } catch {
showError(t('polls', 'Error while copying link to clipboard'))
}
},
diff --git a/src/js/components/Base/PersonalLink.vue b/src/js/components/Base/PersonalLink.vue
index 6b509840..628eaceb 100644
--- a/src/js/components/Base/PersonalLink.vue
+++ b/src/js/components/Base/PersonalLink.vue
@@ -67,7 +67,7 @@ export default {
try {
const response = await this.$store.dispatch('share/resendInvitation')
showSuccess(t('polls', 'Invitation resent to {emailAddress}', { emailAddress: response.data.share.emailAddress }))
- } catch (e) {
+ } catch {
showError(t('polls', 'Mail could not be resent to {emailAddress}', { emailAddress: this.share.emailAddress }))
}
},
@@ -76,7 +76,7 @@ export default {
try {
await this.$copyText(this.personalLink)
showSuccess(t('polls', 'Link copied to clipboard'))
- } catch (e) {
+ } catch {
showError(t('polls', 'Error while copying link to clipboard'))
}
},
diff --git a/src/js/components/Base/PublicEmail.vue b/src/js/components/Base/PublicEmail.vue
index fa860f3b..77b69330 100644
--- a/src/js/components/Base/PublicEmail.vue
+++ b/src/js/components/Base/PublicEmail.vue
@@ -101,7 +101,7 @@ export default {
await axios.get(generateUrl('apps/polls/check/emailaddress') + '/' + this.emailAddress)
this.checkResult = t('polls', 'valid email address.')
this.checkStatus = 'success'
- } catch (e) {
+ } catch {
this.checkResult = t('polls', 'Invalid email address.')
this.checkStatus = 'error'
} finally {
diff --git a/src/js/components/Base/PublicRegisterModal.vue b/src/js/components/Base/PublicRegisterModal.vue
index 4c76490b..098aec76 100644
--- a/src/js/components/Base/PublicRegisterModal.vue
+++ b/src/js/components/Base/PublicRegisterModal.vue
@@ -226,7 +226,7 @@ export default {
await axios.post(generateUrl('apps/polls/check/username'), { userName: this.userName, token: this.$route.params.token })
this.checkingUserName = false
this.isValidName = true
- } catch (e) {
+ } catch {
this.checkingUserName = false
this.isValidName = false
}
@@ -242,7 +242,7 @@ export default {
await axios.get(generateUrl('apps/polls/check/emailaddress') + '/' + this.emailAddress)
this.isValidEmailAddress = true
this.checkingEmailAddress = false
- } catch (e) {
+ } catch {
this.isValidEmailAddress = false
this.checkingEmailAddress = false
}
@@ -264,7 +264,7 @@ export default {
this.$router.replace({ name: 'publicVote', params: { token: response.token } })
this.closeModal()
}
- } catch (e) {
+ } catch {
showError(t('polls', 'Error saving username', 1, this.poll.title))
}
}
diff --git a/src/js/components/Base/UserSearch.vue b/src/js/components/Base/UserSearch.vue
index c74876d0..e7216ebd 100644
--- a/src/js/components/Base/UserSearch.vue
+++ b/src/js/components/Base/UserSearch.vue
@@ -105,7 +105,7 @@ export default {
id: payload.id,
emailAddress: payload.emailAddress,
})
- } catch (e) {
+ } catch {
showError(t('polls', 'Error while adding share'))
}
},