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-01-03 16:03:37 +0300
committerdartcafe <github@dartcafe.de>2020-01-03 16:03:37 +0300
commit3ef92aa1aa42b4d8f63e96a7a5217807bf885ae6 (patch)
tree6f14be4bb8699020fc4ac87d64dd916e29526d99 /src/js/components/Create
parent88ddcdd4c825f477efda414b1a52c78d9f1fbc31 (diff)
lot of lint fixes
Diffstat (limited to 'src/js/components/Create')
-rw-r--r--src/js/components/Create/CreateDlg.vue10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue
index 16888af4..be368190 100644
--- a/src/js/components/Create/CreateDlg.vue
+++ b/src/js/components/Create/CreateDlg.vue
@@ -77,7 +77,7 @@ export default {
},
methods: {
- ...mapMutations([ 'setPollProperty', 'resetPoll', 'reset' ]),
+ ...mapMutations(['setPollProperty', 'resetPoll', 'reset']),
cancel() {
this.title = ''
@@ -88,11 +88,11 @@ export default {
confirm() {
this.resetPoll()
this.reset()
- this.setPollProperty({ 'id': 0 })
- this.setPollProperty({ 'title': this.title })
- this.setPollProperty({ 'type': this.type })
+ this.setPollProperty({ id: 0 })
+ this.setPollProperty({ title: this.title })
+ this.setPollProperty({ type: this.type })
this.$store.dispatch('writePollPromise')
- .then((response) => {
+ .then(() => {
this.cancel()
OC.Notification.showTemporary(t('polls', 'Poll "%n" added', 1, this.poll.title), { type: 'success' })
this.$router.push({ name: 'vote', params: { id: this.poll.id } })