feat(views): fetch tasks via view context when accessing them through views
This commit is contained in:
@ -2,6 +2,7 @@ import type {IAbstract} from './IAbstract'
|
||||
import type {ITask} from './ITask'
|
||||
import type {IUser} from './IUser'
|
||||
import type {ISubscription} from './ISubscription'
|
||||
import type {IProjectView} from '@/modelTypes/IProjectView'
|
||||
|
||||
|
||||
export interface IProject extends IAbstract {
|
||||
@ -21,6 +22,7 @@ export interface IProject extends IAbstract {
|
||||
parentProjectId: number
|
||||
doneBucketId: number
|
||||
defaultBucketId: number
|
||||
views: IProjectView[]
|
||||
|
||||
created: Date
|
||||
updated: Date
|
||||
|
24
frontend/src/modelTypes/IProjectView.ts
Normal file
24
frontend/src/modelTypes/IProjectView.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import type {IAbstract} from './IAbstract'
|
||||
import type {ITask} from './ITask'
|
||||
import type {IUser} from './IUser'
|
||||
import type {ISubscription} from './ISubscription'
|
||||
import type {IProject} from '@/modelTypes/IProject'
|
||||
|
||||
|
||||
export interface IProjectView extends IAbstract {
|
||||
id: number
|
||||
title: string
|
||||
projectId: IProject['id']
|
||||
viewKind: 'list' | 'gantt' | 'table' | 'kanban'
|
||||
|
||||
fitler: string
|
||||
position: number
|
||||
|
||||
bucketConfigurationMode: 'none' | 'manual' | 'filter'
|
||||
bucketConfiguration: object
|
||||
defaultBucketId: number
|
||||
doneBucketId: number
|
||||
|
||||
created: Date
|
||||
updated: Date
|
||||
}
|
Reference in New Issue
Block a user