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
29 lines
546 B
JavaScript
29 lines
546 B
JavaScript
import AbstractModel from './abstractModel'
|
|
import UserModel from './user'
|
|
import TaskModel from './task'
|
|
|
|
export default class BucketModel extends AbstractModel {
|
|
constructor(bucket) {
|
|
super(bucket)
|
|
|
|
this.tasks = this.tasks.map(t => new TaskModel(t))
|
|
|
|
this.createdBy = new UserModel(this.createdBy)
|
|
this.created = new Date(this.created)
|
|
this.updated = new Date(this.updated)
|
|
}
|
|
|
|
defaults() {
|
|
return {
|
|
id: 0,
|
|
title: '',
|
|
listId: 0,
|
|
limit: 0,
|
|
tasks: [],
|
|
|
|
createdBy: null,
|
|
created: null,
|
|
updated: null,
|
|
}
|
|
}
|
|
} |