diff options
author | dartcafe <github@dartcafe.de> | 2021-03-22 01:20:44 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-03-22 09:28:30 +0300 |
commit | e31a91655de85b97905b9053b83e923566bd4f0c (patch) | |
tree | 703ecb27315031ef08e811f4ced4d319999af84d /src/js/store/modules/poll.js | |
parent | 26f90b4126abc3731d46bb4c735e872d690eaba6 (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.js | 8 |
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'] |