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:
Diffstat (limited to 'src/js/store/modules/poll.js')
-rw-r--r--src/js/store/modules/poll.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/js/store/modules/poll.js b/src/js/store/modules/poll.js
index 8b14a98e..62fa9eb7 100644
--- a/src/js/store/modules/poll.js
+++ b/src/js/store/modules/poll.js
@@ -95,6 +95,18 @@ const getters = {
}
},
+ proposalsAllowed: (state) => {
+ return (state.allowProposals === 'allow' || state.allowProposals === 'review')
+ },
+
+ proposalsOptions: () => {
+ return [
+ { value: 'disallow', label: t('polls', 'Disallow Proposals') },
+ { value: 'allow', label: t('polls', 'Allow Proposals') },
+ { value: 'review', label: t('polls', 'Allow with review') },
+ ]
+ },
+
closed: (state) => {
return (state.expire > 0 && moment.unix(state.expire).diff() < 0)
},