story-content: Added edit/delete chapters

This commit is contained in:
2018-09-19 18:53:16 +02:00
parent da0f472d6e
commit 9af816d8f2
12 changed files with 275 additions and 40 deletions
@@ -1,7 +1,17 @@
const moment = require("moment")
module.exports = class {
onCreate({kind, weak, value, updated}) {
onCreate() {
this.state = {text: null, color: "color-menu", href: null, tooltip: null}
}
onInput(input) {
if (this.state != null) {
this.updateState(input)
}
}
updateState({kind, weak, value, updated}) {
this.state = {text: null, color: "color-menu", href: null, tooltip: null}
if (value == null || value == "") {