From cccae7c33327736b237a1d2026462b76042b3c29 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 15 Oct 2023 21:06:25 +0200 Subject: [PATCH] move some ctas from vote page to cards Signed-off-by: dartcafe --- src/js/components/Actions/index.js | 2 +- .../Actions/modules/ActionSendConfirmed.vue | 113 +++++++++++++++ .../modules/ActionSendConfirmedOptions.vue | 129 ------------------ src/js/views/Vote.vue | 33 +++-- 4 files changed, 137 insertions(+), 140 deletions(-) create mode 100644 src/js/components/Actions/modules/ActionSendConfirmed.vue delete mode 100644 src/js/components/Actions/modules/ActionSendConfirmedOptions.vue diff --git a/src/js/components/Actions/index.js b/src/js/components/Actions/index.js index 3e745cdf9..4a29bbfc0 100644 --- a/src/js/components/Actions/index.js +++ b/src/js/components/Actions/index.js @@ -1,5 +1,5 @@ export { default as ActionChangeView } from './modules/ActionChangeView.vue' export { default as ActionDelete } from './modules/ActionDelete.vue' -export { default as ActionSendConfirmedOptions } from './modules/ActionSendConfirmedOptions.vue' +export { default as ActionSendConfirmed } from './modules/ActionSendConfirmed.vue' export { default as ActionSortOptions } from './modules/ActionSortOptions.vue' export { default as ActionToggleSidebar } from './modules/ActionToggleSidebar.vue' diff --git a/src/js/components/Actions/modules/ActionSendConfirmed.vue b/src/js/components/Actions/modules/ActionSendConfirmed.vue new file mode 100644 index 000000000..e3b4db508 --- /dev/null +++ b/src/js/components/Actions/modules/ActionSendConfirmed.vue @@ -0,0 +1,113 @@ + + + + + + + diff --git a/src/js/components/Actions/modules/ActionSendConfirmedOptions.vue b/src/js/components/Actions/modules/ActionSendConfirmedOptions.vue deleted file mode 100644 index 8b2d59778..000000000 --- a/src/js/components/Actions/modules/ActionSendConfirmedOptions.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue index 91e1061a9..561918f0b 100644 --- a/src/js/views/Vote.vue +++ b/src/js/views/Vote.vue @@ -43,10 +43,28 @@ - + + {{ t('polls', 'You are asked to propose more options. ') }} +

+ {{ t('polls', 'The proposal period ends {timeRelative}', { timeRelative: proposalsExpireRelative }) }} +

+ + +
+ + {{ t('polls', 'This poll is closed. No further action is possible.') }} + + {{ t('polls', 'You have confirmed options. Inform your participants about the result via email.') }} + + + {{ lockedShareCardCaption }} @@ -55,13 +73,6 @@ -
- -
-
- -
-
@@ -115,12 +126,12 @@ import PollHeaderButtons from '../components/Poll/PollHeaderButtons.vue' import { CardDiv, HeaderBar } from '../components/Base/index.js' import DatePollIcon from 'vue-material-design-icons/CalendarBlank.vue' import TextPollIcon from 'vue-material-design-icons/FormatListBulletedSquare.vue' -import { ActionSendConfirmedOptions } from '../components/Actions/index.js' +import { ActionSendConfirmed } from '../components/Actions/index.js' export default { name: 'Vote', components: { - ActionSendConfirmedOptions, + ActionSendConfirmed, NcAppContent, NcButton, NcEmptyContent, @@ -159,6 +170,8 @@ export default { viewMode: 'poll/viewMode', proposalsAllowed: 'poll/proposalsAllowed', proposalsOpen: 'poll/proposalsOpen', + proposalsExpirySet: 'poll/proposalsExpirySet', + proposalsExpireRelative: 'poll/proposalsExpireRelative', countHiddenParticipants: 'poll/countHiddenParticipants', safeTable: 'poll/safeTable', confirmedOptions: 'options/confirmed',