funky-framadate-front/src/app/features/shared/components/choice-button-dinum/choice-button-dinum.compone...

9 lines
401 B
HTML

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