Add changing list identifier
This commit is contained in:
@ -33,6 +33,7 @@ export default class ListModel extends AbstractModel {
|
||||
namespaceId: 0,
|
||||
isArchived: false,
|
||||
hexColor: '',
|
||||
identifier: '',
|
||||
|
||||
created: null,
|
||||
updated: null,
|
||||
|
@ -63,6 +63,11 @@ export default class TaskModel extends AbstractModel {
|
||||
return new AttachmentModel(a)
|
||||
})
|
||||
|
||||
// Set the task identifier to empty if the list does not have one
|
||||
if(this.identifier === `-${this.index}`) {
|
||||
this.identifier = ''
|
||||
}
|
||||
|
||||
this.created = new Date(this.created)
|
||||
this.updated = new Date(this.updated)
|
||||
}
|
||||
@ -87,6 +92,8 @@ export default class TaskModel extends AbstractModel {
|
||||
percentDone: 0,
|
||||
relatedTasks: {},
|
||||
attachments: [],
|
||||
identifier: '',
|
||||
index: 0,
|
||||
|
||||
createdBy: UserModel,
|
||||
created: null,
|
||||
|
Reference in New Issue
Block a user