mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
13 lines
521 B
HTML
13 lines
521 B
HTML
<button
|
|
class="choice-button is-white"
|
|
[ngClass]="{ 'is-primary': storageService.choiceHasAnswerOfValue(choice.id, answerEnum[answerKind]) }"
|
|
(click)="storageService.toggleAnswer(choice.id, answerEnum[answerKind])"
|
|
*ngIf="poll.allowed_answers.indexOf(answerEnum[answerKind]) !== -1"
|
|
>
|
|
<img class="image is-24x24" src="../../../assets/img/icon_voter_{{ answerKind }}.svg" />
|
|
|
|
<span class="counter" *ngIf="choice[answerEnum[answerKind]].count * 1 > 0">
|
|
{{ choice[answerEnum[answerKind]].count }}
|
|
</span>
|
|
</button>
|