From 1066fc00a750e868165d83d178fd38b412f94b51 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 4 Oct 2024 17:44:54 +0200 Subject: [PATCH 1/2] fix: store form data as a single object Signed-off-by: Maksim Sukharev --- .../NewMessage/NewMessagePollEditor.vue | 61 +++++++++++-------- src/stores/__tests__/polls.spec.js | 2 +- src/stores/polls.ts | 10 +-- 3 files changed, 40 insertions(+), 33 deletions(-) diff --git a/src/components/NewMessage/NewMessagePollEditor.vue b/src/components/NewMessage/NewMessagePollEditor.vue index 166137a5547..dbd06a39125 100644 --- a/src/components/NewMessage/NewMessagePollEditor.vue +++ b/src/components/NewMessage/NewMessagePollEditor.vue @@ -12,19 +12,19 @@

{{ t('spreed', 'Question') }}

- +

{{ t('spreed', 'Answers') }}

-
- @@ -58,8 +58,7 @@ {{ t('spreed', 'Dismiss') }} - - + {{ t('spreed', 'Create poll') }} @@ -67,6 +66,8 @@