From b26f8371e3e13fcea59279c605348450a648a011 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Fri, 22 Feb 2019 08:32:29 +0100 Subject: [PATCH] fix and beautitfy --- src/js/components/pollListItem.vue | 100 ++++++++++++++--------------- src/js/views/Create.vue | 6 +- 2 files changed, 52 insertions(+), 54 deletions(-) diff --git a/src/js/components/pollListItem.vue b/src/js/components/pollListItem.vue index 38aa63219..4d99ca5a9 100644 --- a/src/js/components/pollListItem.vue +++ b/src/js/components/pollListItem.vue @@ -50,7 +50,7 @@
-
+
{{ accessType }}
@@ -107,7 +107,7 @@ export default { pollType() { if (this.poll.event.type === 'textPoll') { return t('polls', 'Text poll') - } else if (this.poll.event.type === 'datePoll') { + } else { return t('polls', 'Date poll') } }, @@ -163,13 +163,12 @@ export default { if (this.poll.event.owner === OC.getCurrentUser().uid) { - items.push( - { - key: 'deletePoll', - icon: 'icon-rename', - text: t('polls', 'Edit poll'), - action: this.editPoll - }) + items.push({ + key: 'deletePoll', + icon: 'icon-rename', + text: t('polls', 'Edit poll'), + action: this.editPoll + }) items.push({ key: 'deletePoll', icon: 'icon-delete', @@ -179,13 +178,12 @@ export default { } else if (OC.isUserAdmin()) { - items.push( - { - key: 'editPoll', - icon: 'icon-rename', - text: t('polls', 'Edit poll as admin'), - action: this.editPoll - }) + items.push({ + key: 'editPoll', + icon: 'icon-rename', + text: t('polls', 'Edit poll as admin'), + action: this.editPoll + }) items.push({ key: 'deletePoll', icon: 'icon-delete', @@ -239,12 +237,11 @@ export default { } diff --git a/src/js/views/Create.vue b/src/js/views/Create.vue index 5b10e3921..ba0c204ff 100644 --- a/src/js/views/Create.vue +++ b/src/js/views/Create.vue @@ -69,7 +69,9 @@ confirm @change="addNewPollDate" /> - @@ -184,7 +186,7 @@ -