1
0

Add limits for kanban boards (#234)

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: https://kolaente.dev/vikunja/frontend/pulls/234
This commit is contained in:
konrad
2020-09-04 20:01:02 +00:00
parent 89c602416c
commit cac8b09263
25 changed files with 124 additions and 43 deletions

View File

@ -1,6 +1,6 @@
import AbstractModel from './abstractModel'
import UserModel from './user'
import TaskModel from "./task";
import TaskModel from './task'
export default class BucketModel extends AbstractModel {
constructor(bucket) {
@ -18,6 +18,7 @@ export default class BucketModel extends AbstractModel {
id: 0,
title: '',
listId: 0,
limit: 0,
tasks: [],
createdBy: null,

View File

@ -75,7 +75,7 @@ export default class TaskModel extends AbstractModel {
defaults() {
return {
id: 0,
text: '',
title: '',
description: '',
done: false,
priority: 0,