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/views/Administration.vue
parent09be13f03bcb7b149d6e942ead21949eb7975af1 (diff)
js code maintenance and tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views/Administration.vue')
-rw-r--r--src/js/views/Administration.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/views/Administration.vue b/src/js/views/Administration.vue
index 8816a58e..8efebc8d 100644
--- a/src/js/views/Administration.vue
+++ b/src/js/views/Administration.vue
@@ -191,7 +191,7 @@ export default {
try {
await this.$store.dispatch('poll/switchDeleted', { pollId: pollId })
emit('update-polls')
- } catch (e) {
+ } catch {
showError(t('polls', 'Error switching deleted status.'))
}
},
@@ -201,7 +201,7 @@ export default {
await this.$store.dispatch('poll/delete', { pollId: this.deletePollId })
emit('update-polls')
this.deleteModal = false
- } catch (e) {
+ } catch {
showError(t('polls', 'Error deleting poll.'))
this.deleteModal = false
}
@@ -212,7 +212,7 @@ export default {
await this.$store.dispatch('pollsAdmin/takeOver', { pollId: this.takeOverPollId })
emit('update-polls')
this.takeOverModal = false
- } catch (e) {
+ } catch {
showError(t('polls', 'Error overtaking poll.'))
this.takeOverModal = false
}