forked from tykayn/funky-framadate-front
ability to toggle answers on grouped choices
This commit is contained in:
parent
86c0ff815f
commit
16db2a69cf
@ -50,6 +50,7 @@ export class StorageService {
|
||||
}
|
||||
|
||||
toggleAnswer(choice_id: number, value: string) {
|
||||
console.log('this.vote_stack', this.vote_stack);
|
||||
for (const vote of this.vote_stack.votes) {
|
||||
if (vote.choice_id == choice_id) {
|
||||
if (vote.value == value) {
|
||||
|
@ -7,9 +7,9 @@
|
||||
<div class="box" *ngFor="let choice of group.choices">
|
||||
<div class="columns is-vcentered is-mobile">
|
||||
<div class="column">
|
||||
<label class="label" *ngIf="poll.kind == 'text'">{{ choice.name }} </label>
|
||||
<label class="label" *ngIf="poll.kind == 'date'">
|
||||
{{ choice.name }} : {{ choice.name | date: 'short':'Europe/Paris':'fr_FR' }}
|
||||
<label class="label">
|
||||
<!-- {{choice.id}} )-->
|
||||
{{ choice.name }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="column is-narrow">
|
||||
@ -39,9 +39,6 @@
|
||||
<div class="columns is-vcentered is-mobile">
|
||||
<div class="column">
|
||||
<label class="label" *ngIf="poll.kind == 'text'">{{ choice.name }} </label>
|
||||
<label class="label" *ngIf="poll.kind == 'date'">
|
||||
{{ choice.name }} : {{ choice.name | date: 'short':'Europe/Paris':'fr_FR' }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="column is-narrow">
|
||||
<span class="max_score" *ngIf="poll.max_score > 0 && choice.score == poll.max_score">
|
||||
|
Loading…
x
Reference in New Issue
Block a user