mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
fix display of text to vote
This commit is contained in:
parent
d605f3c9db
commit
6c5418c484
@ -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);
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user