story-content: Added edit/delete chapters
This commit is contained in:
@@ -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 == "") {
|
||||
|
||||
Reference in New Issue
Block a user