Commit c6240d440c6892aa3cc468dc02260fba90d90a35
Placeholder when no messages
Josiah Witt committed on 12/10/2017, 2:41:14 PMParent: ec8a974282c6aa88e8450029617f906f6f638993
Files changed
bookmark/page/bookmarks.js | changed |
bookmark/page/bookmarks.js | |||
---|---|---|---|
@@ -53,10 +53,18 @@ | |||
53 | 53 … | tags => tags.filter(t => defaultTags.indexOf(t) < 0) | |
54 | 54 … | ) | |
55 | 55 … | ) | |
56 | 56 … | const currentTag = h('h2', tag) | |
57 … | + const areMessages = computed( | ||
58 … | + [api.bookmark.obs.taggedMessages(id, tag)], | ||
59 … | + msgs => msgs.length > 0 | ||
60 … | + ) | ||
57 | 61 … | const { container, content } = api.app.html.scroller({ | |
58 | - prepend: [ creator, tagsBar, currentTag ] | ||
62 … | + prepend: [ creator, tagsBar, currentTag ], | ||
63 … | + append: when(areMessages, | ||
64 … | + [], | ||
65 … | + [ h('h4', 'No messages in tag!') ] | ||
66 … | + ) | ||
59 | 67 … | }) | |
60 | 68 … | ||
61 | 69 … | pull( | |
62 | 70 … | api.bookmark.pull.find(), |
Built with git-ssb-web