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:
2022-12-24 18:50:01 +00:00
parent b406501263
commit c49da3db07
4 changed files with 31 additions and 6 deletions

View File

@ -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();
}
}