This commit is contained in:
@@ -9,6 +9,7 @@ module.exports = class {
|
||||
log: input.log,
|
||||
modal: null,
|
||||
removed: false,
|
||||
highlights: [],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,6 +167,10 @@ module.exports = class {
|
||||
this.state.removed = true
|
||||
}
|
||||
|
||||
highlightsChanged(highlights) {
|
||||
this.state.highlights = highlights.slice();
|
||||
}
|
||||
|
||||
get title() {
|
||||
if (this.state.log.title) {
|
||||
return this.state.log.title
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<logs-content-menu user=input.user log=state.log on-select("open") />
|
||||
<logs-content-menu on-hightlights("highlightsChanged") user=input.user log=state.log on-select("open") />
|
||||
<main>
|
||||
<div class="logs-content">
|
||||
<div class="header">
|
||||
@@ -25,6 +25,7 @@
|
||||
prev=(state.log.posts[loop.getIndex() - 1] || {})
|
||||
post=post
|
||||
characters=state.log.characters
|
||||
highlights=state.highlights
|
||||
last=(post.position === state.log.posts.length)
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user