fix display of text to vote

This commit is contained in:
Tykayn 2022-02-11 12:30:36 +01:00 committed by tykayn
parent d605f3c9db
commit 6c5418c484
2 changed files with 8 additions and 1 deletions

View File

@ -46,6 +46,8 @@ export class ConsultationUserComponent implements OnInit {
.then((resp: any) => { .then((resp: any) => {
console.log('sendNewVoteStackOfPoll resp', resp); console.log('sendNewVoteStackOfPoll resp', resp);
this.storeVoteStackAndReloadPoll(resp); this.storeVoteStackAndReloadPoll(resp);
this.router.navigate(['/poll/' + this.pollService._poll.getValue().custom_url + '/consultation']);
this.toastService.display('woot !');
}) })
// eslint-disable-next-line @typescript-eslint/unbound-method // eslint-disable-next-line @typescript-eslint/unbound-method
.catch(this.api.ousideHandleError); .catch(this.api.ousideHandleError);

View File

@ -11,9 +11,14 @@
<div class="" *ngIf="poll"> <div class="" *ngIf="poll">
<div class="time-slice-choice rounded-block" *ngFor="let group_choice of poll.choices_grouped"> <div class="time-slice-choice rounded-block" *ngFor="let group_choice of poll.choices_grouped">
<div class="groupe-label"> <div class="groupe-label">
<!-- <span *ngIf="poll.kind == 'text'">-->
<!-- {{group_choice.date_string}}-->
<!-- </span>-->
<span *ngIf="poll.kind == 'date'">
{{ dateFromString(group_choice.date_string) | date: 'EEEE dd MMMM':'Europe/Paris' }}
</span>
<!-- {{ (dayStringFromDateString(group_choice.date_string))| translate}}--> <!-- {{ (dayStringFromDateString(group_choice.date_string))| translate}}-->
<!-- {{"calendar_widget.dayNames.Thursday" | translate}}--> <!-- {{"calendar_widget.dayNames.Thursday" | translate}}-->
{{ dateFromString(group_choice.date_string) | date: 'EEEE dd MMMM':'Europe/Paris' }}
</div> </div>
<div class="choice-subset" *ngFor="let choice of group_choice.choices"> <div class="choice-subset" *ngFor="let choice of group_choice.choices">
<div class="choice-label"> <div class="choice-label">