forked from vikunja/vikunja
kolaente
a5c51d4b1e
This PR adds reactions for tasks and comments, similar to what you can do on Gitea, GitHub, Slack and plenty of other tools. Reviewed-on: vikunja/vikunja#2196 Co-authored-by: kolaente <k@knt.li> Co-committed-by: kolaente <k@knt.li>
14 lines
354 B
TypeScript
14 lines
354 B
TypeScript
import type {IReaction} from '@/modelTypes/IReaction'
|
|
import AbstractModel from '@/models/abstractModel'
|
|
|
|
export default class ReactionModel extends AbstractModel<IReaction> implements IReaction {
|
|
id: number = 0
|
|
kind: 'tasks' | 'comments' = 'tasks'
|
|
value: string = ''
|
|
|
|
constructor(data: Partial<IReaction>) {
|
|
super()
|
|
this.assignData(data)
|
|
}
|
|
}
|
|
|