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-10-14 13:16:35 +0300
committerdartcafe <github@dartcafe.de>2020-10-14 13:16:35 +0300
commit897ee2b8c6acf0159d00a524b971396770cfa46f (patch)
tree607f50933b2f731ffd775d78cc307046c82b088d /src/js/views/Vote.vue
parentfe5199ffeb0977c85488ed0bada8c16e02b51702 (diff)
refactoring 'expired' -> 'closed'
Diffstat (limited to 'src/js/views/Vote.vue')
-rw-r--r--src/js/views/Vote.vue10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 74a6ba9f..13a10be5 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -21,7 +21,7 @@
-->
<template>
- <AppContent :class="{ expired: isExpired }">
+ <AppContent :class="{ closed: closed }">
<div class="header-actions">
<Actions>
<ActionButton :icon="sortIcon" @click="ranked = !ranked">
@@ -42,11 +42,11 @@
<div class="area__header">
<h2 class="title">
{{ poll.title }}
- <Badge v-if="isExpired"
+ <Badge v-if="closed"
:title="dateExpiryString"
icon="icon-polls-closed"
class="error" />
- <Badge v-if="!isExpired && poll.expire"
+ <Badge v-if="!closed && poll.expire"
:title="dateExpiryString"
icon="icon-calendar"
class="success" />
@@ -143,7 +143,7 @@ export default {
}),
...mapGetters({
- isExpired: 'poll/expired',
+ closed: 'poll/closed',
}),
viewTextPoll() {
@@ -213,7 +213,7 @@ export default {
showRegisterModal() {
return (this.$route.name === 'publicVote'
&& !this.share.userId
- && !this.isExpired
+ && !this.closed
&& this.poll.id
)
},