story-content: Fixed update weirdness, moved edit/remove modals up

This commit is contained in:
2018-09-22 11:48:04 +02:00
parent c40ac40ab5
commit a560752eb8
7 changed files with 12 additions and 12 deletions
@@ -4,20 +4,11 @@ module.exports = class {
onCreate(input) {
this.state = {
selectedChapter: "",
bullshit: 0,
}
}
onMount() {
this.state.selectedChapter = (window.location.hash||"#").slice(1)
// Marko is being silly and needs a state change to re-render
setInterval(() => {
this.state.bullshit++
if (this.state.bullshit > 10000) {
this.state.bullshit = 0
}
}, 250)
}
chapterTitle(chapter) {