This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/taskComment.js
konrad 57f78ee0d4
All checks were successful
continuous-integration/drone/push Build is passing
Task Comments (#66)
Better edit/remove buttons

Spacing

More loading

Add loading

Better dates formatting

Add editing comments

Move closing delete modal to finally

Add delete comments

Add keycode modifier

Comment styling

Comment form

Add basic task comments functionality

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: #66
2020-02-25 20:11:36 +00:00

23 lines
432 B
JavaScript

import AbstractModel from './abstractModel'
import UserModel from './user'
export default class TaskCommentModel extends AbstractModel {
constructor(data) {
super(data)
this.author = new UserModel(this.author)
this.created = new Date(this.created)
this.updated = new Date(this.updated)
}
defaults() {
return {
id: 0,
task_id: 0,
comment: '',
author: UserModel,
created: null,
update: null,
}
}
}