log-contents: Added remove log form.

This commit is contained in:
2018-10-01 21:25:05 +02:00
parent fee846a12d
commit 7323d41654
5 changed files with 55 additions and 1 deletions
@@ -7,6 +7,7 @@ module.exports = class {
this.state = {
log: input.log,
modal: null,
removed: false,
}
}
@@ -92,6 +93,10 @@ module.exports = class {
this.state.log = Object.assign({}, this.state.log)
}
logRemoved() {
this.state.removed = true
}
get title() {
if (this.state.log.title) {
return this.state.log.title