This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/projectDuplicateModel.ts
kolaente b742c55287
All checks were successful
continuous-integration/drone/push Build is passing
fix(projects): update project duplicate api definitions
2023-07-07 13:00:48 +02:00

18 lines
589 B
TypeScript

import AbstractModel from './abstractModel'
import ProjectModel from './project'
import type {IProjectDuplicate} from '@/modelTypes/IProjectDuplicate'
import type {IProject} from '@/modelTypes/IProject'
export default class ProjectDuplicateModel extends AbstractModel<IProjectDuplicate> implements IProjectDuplicate {
projectId = 0
duplicatedProject: IProject | null = null
parentProjectId = 0
constructor(data : Partial<IProjectDuplicate>) {
super()
this.assignData(data)
this.duplicatedProject = this.duplicatedProject ? new ProjectModel(this.duplicatedProject) : null
}
}