forked from cory/tildefriends
Format about messages. Todo fixes. Add a collapse button to complement more.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4077 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -57,7 +57,11 @@ class TodoListElement extends LitElement {
|
||||
}
|
||||
|
||||
save() {
|
||||
tfrpc.rpc.todo_set(this.name, this.items).catch(function(error) {
|
||||
let self = this;
|
||||
console.log('saving', self.name, self.items);
|
||||
tfrpc.rpc.todo_set(self.name, self.items).then(function() {
|
||||
console.log('saved', self.name, self.items);
|
||||
}).catch(function(error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
@ -86,6 +90,7 @@ class TodoListElement extends LitElement {
|
||||
if (event.key === 'Enter' || event.key === 'Escape') {
|
||||
item.text = event.srcElement.value;
|
||||
this.editing = undefined;
|
||||
this.save();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user