default max count of answers set to a big number

This commit is contained in:
Tykayn 2022-03-21 10:32:13 +01:00 committed by tykayn
parent 5c1e7119b2
commit 62489dd250
2 changed files with 90 additions and 87 deletions

View File

@ -818,8 +818,8 @@ export class PollService implements Resolve<Poll> {
} }
newpoll.description = form.value.description; newpoll.description = form.value.description;
newpoll.has_several_hours = form.value.hasSeveralHours; newpoll.has_several_hours = form.value.hasSeveralHours;
newpoll.max_count_of_answers = form.value.maxCountOfAnswers; newpoll.max_count_of_answers = form.value.maxCountOfAnswers | (1024 * 10);
newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers; newpoll.maxCountOfAnswers = form.value.maxCountOfAnswers | (1024 * 10);
newpoll.password = form.value.password; newpoll.password = form.value.password;
newpoll.kind = form.value.isAboutDate ? 'date' : 'classic'; newpoll.kind = form.value.isAboutDate ? 'date' : 'classic';
newpoll.allow_comments = form.value.allowComments; newpoll.allow_comments = form.value.allowComments;

View File

@ -16,6 +16,7 @@
</button> </button>
<form action="#/administration/step/{{ pollService.step_current }}"> <form action="#/administration/step/{{ pollService.step_current }}">
<dialog [attr.aria-labelledby]="'popup.languages.title' | translate" role="dialog">
<p-dialog <p-dialog
[modal]="true" [modal]="true"
[(visible)]="display_lang_dialog" [(visible)]="display_lang_dialog"
@ -24,8 +25,6 @@
[draggable]="false" [draggable]="false"
[showHeader]="false" [showHeader]="false"
[resizable]="true" [resizable]="true"
[attr.aria-labelledby]="'popup.languages.title' | translate"
role="dialog"
id="lang_selector_modale" id="lang_selector_modale"
> >
<ng-template pTemplate="titlebar"> <ng-template pTemplate="titlebar">
@ -75,7 +74,10 @@
</div> </div>
<div class="list-of-langs is-static" *ngIf="!display_dynamic_langs"> <div class="list-of-langs is-static" *ngIf="!display_dynamic_langs">
<div *ngFor="let language of availableLanguagesStatic" (click)="language_to_apply = language.value"> <div
*ngFor="let language of availableLanguagesStatic"
(click)="language_to_apply = language.value"
>
<label <label
[attr.for]="'#lang_' + language" [attr.for]="'#lang_' + language"
class="lang-element button is-action" class="lang-element button is-action"
@ -110,5 +112,6 @@
</div> </div>
</ng-template> </ng-template>
</p-dialog> </p-dialog>
</dialog>
</form> </form>
</div> </div>