mirror of
https://github.com/plankanban/planka.git
synced 2025-12-29 17:25:05 +03:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -7,6 +7,7 @@ export default class extends Model {
|
||||
|
||||
static fields = {
|
||||
id: attr(),
|
||||
type: attr(),
|
||||
position: attr(),
|
||||
name: attr(),
|
||||
isFetching: attr({
|
||||
|
||||
@@ -22,16 +22,16 @@ export default class extends Model {
|
||||
isAllActionsFetched: attr({
|
||||
getDefault: () => false,
|
||||
}),
|
||||
listId: fk({
|
||||
to: 'List',
|
||||
as: 'list',
|
||||
relatedName: 'cards',
|
||||
}),
|
||||
boardId: fk({
|
||||
to: 'Board',
|
||||
as: 'board',
|
||||
relatedName: 'cards',
|
||||
}),
|
||||
listId: fk({
|
||||
to: 'List',
|
||||
as: 'list',
|
||||
relatedName: 'cards',
|
||||
}),
|
||||
coverAttachmentId: oneToOne({
|
||||
to: 'Attachment',
|
||||
as: 'coverAttachment',
|
||||
|
||||
@@ -2,8 +2,8 @@ import User from './User';
|
||||
import Project from './Project';
|
||||
import ProjectMembership from './ProjectMembership';
|
||||
import Board from './Board';
|
||||
import List from './List';
|
||||
import Label from './Label';
|
||||
import List from './List';
|
||||
import Card from './Card';
|
||||
import Task from './Task';
|
||||
import Attachment from './Attachment';
|
||||
@@ -15,8 +15,8 @@ export {
|
||||
Project,
|
||||
ProjectMembership,
|
||||
Board,
|
||||
List,
|
||||
Label,
|
||||
List,
|
||||
Card,
|
||||
Task,
|
||||
Attachment,
|
||||
|
||||
Reference in New Issue
Block a user