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-03-22 01:20:44 +0300
committerdartcafe <github@dartcafe.de>2021-03-22 09:28:30 +0300
commite31a91655de85b97905b9053b83e923566bd4f0c (patch)
tree703ecb27315031ef08e811f4ced4d319999af84d /src/js/store/modules/poll.js
parent26f90b4126abc3731d46bb4c735e872d690eaba6 (diff)
maintenance and tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/store/modules/poll.js')
-rw-r--r--src/js/store/modules/poll.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/js/store/modules/poll.js b/src/js/store/modules/poll.js
index 55a7065f..8b14a98e 100644
--- a/src/js/store/modules/poll.js
+++ b/src/js/store/modules/poll.js
@@ -79,6 +79,14 @@ const mutations = {
}
const getters = {
+ typeIcon: (state) => {
+ if (state.type === 'textPoll') {
+ return 'icon-toggle-filelist'
+ } else {
+ return 'icon-calendar-000'
+ }
+ },
+
answerSequence: (state) => {
if (state.allowMaybe) {
return ['no', 'yes', 'maybe']