From 62489dd2509bcdb04b6fc30435b21d76af54f32f Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 21 Mar 2022 10:32:13 +0100 Subject: [PATCH] default max count of answers set to a big number --- src/app/core/services/poll.service.ts | 4 +- .../language-selector.component.html | 173 +++++++++--------- 2 files changed, 90 insertions(+), 87 deletions(-) diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index 02810cf6..89e7a9d2 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -818,8 +818,8 @@ export class PollService implements Resolve { } newpoll.description = form.value.description; newpoll.has_several_hours = form.value.hasSeveralHours; - newpoll.max_count_of_answers = form.value.maxCountOfAnswers; - newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers; + newpoll.max_count_of_answers = form.value.maxCountOfAnswers | (1024 * 10); + newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers | (1024 * 10); newpoll.password = form.value.password; newpoll.kind = form.value.isAboutDate ? 'date' : 'classic'; newpoll.allow_comments = form.value.allowComments; diff --git a/src/app/shared/components/selectors/language-selector/language-selector.component.html b/src/app/shared/components/selectors/language-selector/language-selector.component.html index bc921a8f..a7c1c4ac 100644 --- a/src/app/shared/components/selectors/language-selector/language-selector.component.html +++ b/src/app/shared/components/selectors/language-selector/language-selector.component.html @@ -16,99 +16,102 @@
- - -
+ + +
-
- +
+
+ +
-
-

- {{ 'popup.languages.title' | translate }} -

+

+ {{ 'popup.languages.title' | translate }} +

-
-
- +
+
+ +
-
-
-
-
-
- + - -
- - -
-
- + +
+ + +
+
+ +