konrad
cac8b09263
All checks were successful
continuous-integration/drone/push Build is passing
Prevent dropping a task onto a bucket which has its limit reached Fix closing the dropdown Add notice to show the limit Add input to change kanban bucket limit Add menu item to save bucket limit Fix parsing dates from the api Co-authored-by: kolaente <k@knt.li> Reviewed-on: #234
25 lines
656 B
JavaScript
25 lines
656 B
JavaScript
import AbstractService from './abstractService'
|
|
import TaskCommentModel from '../models/taskComment'
|
|
import {formatISO} from 'date-fns'
|
|
|
|
export default class TaskCommentService extends AbstractService {
|
|
constructor() {
|
|
super({
|
|
create: '/tasks/{taskId}/comments',
|
|
getAll: '/tasks/{taskId}/comments',
|
|
get: '/tasks/{taskId}/comments/{id}',
|
|
update: '/tasks/{taskId}/comments/{id}',
|
|
delete: '/tasks/{taskId}/comments/{id}',
|
|
})
|
|
}
|
|
|
|
processModel(model) {
|
|
model.created = formatISO(new Date(model.created))
|
|
model.updated = formatISO(new Date(model.updated))
|
|
return model
|
|
}
|
|
|
|
modelFactory(data) {
|
|
return new TaskCommentModel(data)
|
|
}
|
|
} |