Changes in src/Clients/Angular/finki-chattery/src/app/shared-app/components/generic/vote/vote.component.ts [dab7a9b:2a9d9d1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/shared-app/components/generic/vote/vote.component.ts
rdab7a9b r2a9d9d1 1 1 import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; 2 import { VoteType } from 'src/app/shared-app/models'; 2 3 import { ButtonType } from '../button/button.models'; 3 4 export enum VoteType {5 Upvote,6 Downvote7 }8 4 9 5 @Component({ … … 14 10 export class VoteComponent implements OnInit { 15 11 @Input() voteCount: number | undefined; 12 @Input() canSetCorrectAnswer: boolean | null = false; 16 13 @Input() correct = false; 17 14 @Output() voteClicked = new EventEmitter<VoteType>(); 15 @Output() setCorrectAnswer = new EventEmitter<void>(); 18 16 19 17 VoteType = VoteType;
Note:
See TracChangeset
for help on using the changeset viewer.