revert: model properties

partially reverts de3c47dc69
This commit is contained in:
kolaente 2022-01-30 20:18:34 +01:00
parent 8f04b10e08
commit 2a819eccb4
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 0 additions and 19 deletions

View file

@ -3,12 +3,6 @@ import UserModel from './user'
import FileModel from './file' import FileModel from './file'
export default class AttachmentModel extends AbstractModel { export default class AttachmentModel extends AbstractModel {
id = 0
taskId = 0
file = FileModel
createdBy = UserModel
created = null
constructor(data) { constructor(data) {
super(data) super(data)
this.createdBy = new UserModel(this.createdBy) this.createdBy = new UserModel(this.createdBy)

View file

@ -2,12 +2,6 @@ import AbstractModel from '@/models/abstractModel'
import UserModel from '@/models/user' import UserModel from '@/models/user'
export default class SubscriptionModel extends AbstractModel { export default class SubscriptionModel extends AbstractModel {
id = 0
entity = ''
entityId = 0
created = null
user = UserModel
constructor(data) { constructor(data) {
super(data) super(data)
this.user = new UserModel(this.user) this.user = new UserModel(this.user)

View file

@ -10,13 +10,6 @@ import {parseDateOrNull} from '@/helpers/parseDateOrNull'
const SUPPORTS_TRIGGERED_NOTIFICATION = 'Notification' in window && 'showTrigger' in Notification.prototype const SUPPORTS_TRIGGERED_NOTIFICATION = 'Notification' in window && 'showTrigger' in Notification.prototype
export default class TaskModel extends AbstractModel { export default class TaskModel extends AbstractModel {
index = 0
done = false
priority = 0
percentDone = 0
defaultColor = '198CFF'
constructor(data) { constructor(data) {
super(data) super(data)