2022-02-07 16:12:32 +01:00
|
|
|
<button
|
2022-02-07 19:05:14 +01:00
|
|
|
class="choice-button has-text-centered {{ 'is-answer-' + answerKind }}"
|
|
|
|
[ngClass]="{ 'is-active': storageService.choiceHasAnswerOfValue(choice.id, answerEnum[answerKind]) }"
|
2022-02-07 16:12:32 +01:00
|
|
|
(click)="storageService.toggleAnswer(choice.id, answerEnum[answerKind])"
|
|
|
|
*ngIf="poll.allowed_answers.indexOf(answerEnum[answerKind]) !== -1"
|
|
|
|
>
|
|
|
|
{{ 'participation.' + answerEnum[answerKind] | translate }}
|
|
|
|
</button>
|