Task lists WIP:
* front-end
This commit is contained in:
@ -8,6 +8,16 @@ import { Model } from '@converse/skeletor/src/model.js'
|
||||
*/
|
||||
class ChatRoomTask extends Model {
|
||||
idAttribute = 'id'
|
||||
|
||||
async saveItem () {
|
||||
console.log('Saving task ' + this.get('id') + '...')
|
||||
await this.collection.chatroom.taskManager.saveItem(this)
|
||||
console.log('Task ' + this.get('id') + ' saved.')
|
||||
}
|
||||
|
||||
async deleteItem () {
|
||||
return this.collection.chatroom.taskManager.deleteItem(this)
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user