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-10-15 00:48:31 +0300
committerdartcafe <github@dartcafe.de>2021-10-15 00:48:31 +0300
commit4b84b06e109182afae3980e3cb4961f0c2238cc2 (patch)
tree7f8fbcbf669aec48e5a1c08a5d1023841315152b /src/js/components/Options
parent465c912accd6b4847d7cdd92d6744b40dccc5b97 (diff)
eslint no-else-return {allowElseif: false}
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Options')
-rw-r--r--src/js/components/Options/OptionItem.vue26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/js/components/Options/OptionItem.vue b/src/js/components/Options/OptionItem.vue
index 6bb5f83b..7c2d9ef7 100644
--- a/src/js/components/Options/OptionItem.vue
+++ b/src/js/components/Options/OptionItem.vue
@@ -147,49 +147,57 @@ export default {
dateLocalFormat() {
if (this.poll.type !== 'datePoll') {
return {}
- } else if (this.option.duration === 0) {
+ }
+
+ if (this.option.duration === 0) {
return this.event.from.dateTime
- } else if (this.event.dayLong && this.event.to.sameDay) {
+ }
+
+ if (this.event.dayLong && this.event.to.sameDay) {
return this.event.from.date
- } else if (this.event.dayLong && !this.event.to.sameDay) {
+ }
+
+ if (this.event.dayLong && !this.event.to.sameDay) {
return `${this.event.from.date} - ${this.event.to.date}`
- } else if (this.event.to.sameDay) {
+ }
+
+ if (this.event.to.sameDay) {
return `${this.event.from.dateTime} - ${this.event.to.time}`
}
- return `${this.event.from.dateTime} - ${this.event.to.dateTime}`
+ return `${this.event.from.dateTime} - ${this.event.to.dateTime}`
},
dateLocalFormatUTC() {
if (this.option.duration) {
return `${this.event.from.utc} - ${this.event.to.utc} UTC`
}
- return `${this.event.from.utc} UTC`
+ return `${this.event.from.utc} UTC`
},
optionTooltip() {
if (this.poll.type === 'datePoll') {
return this.dateLocalFormatUTC
}
- return this.option.pollOptionText
+ return this.option.pollOptionText
},
optionText() {
if (this.poll.type === 'datePoll') {
return this.dateLocalFormat
}
- return this.option.pollOptionText
+ return this.option.pollOptionText
},
show() {
if (this.poll.type === 'datePoll' && this.display === 'dateBox') {
return 'dateBox'
}
- return 'textBox'
+ return 'textBox'
},
},
}