Task lists WIP:

* task list template + form
This commit is contained in:
John Livingston
2024-05-06 12:29:25 +02:00
parent d16bdd9a87
commit 9d5d59e9bc
7 changed files with 185 additions and 28 deletions

View File

@ -16,6 +16,12 @@ class ChatRoomTaskList extends Model {
}) ?? []
}
async saveItem () {
console.log('Saving task list ' + this.get('id') + '...')
await this.collection.chatroom.taskManager.saveItem(this, { name })
console.log('Task list ' + this.get('id') + ' created.')
}
async deleteItem () {
return this.collection.chatroom.taskManager.deleteItem(this)
}