logs-content: Enabled altering of history (added edit options for log posts)

This commit is contained in:
2018-09-30 15:33:25 +02:00
parent db069d1c1a
commit 3c35f75f62
7 changed files with 127 additions and 1 deletions
@@ -70,6 +70,10 @@ module.exports = class {
})
}
postEdited(post) {
this.patch([post])
}
get title() {
if (this.state.log.title) {
return this.state.log.title
@@ -6,6 +6,7 @@
key=post.id
on-move("movePost", post)
on-remove("removePost", post)
on-edited("postEdited")
post=post
characters=state.log.characters
last=(post.position === state.log.posts.length)