git ssb

0+

Josiah / patchbay-tags



Commit c6240d440c6892aa3cc468dc02260fba90d90a35

Placeholder when no messages

Josiah Witt committed on 12/10/2017, 2:41:14 PM
Parent: ec8a974282c6aa88e8450029617f906f6f638993

Files changed

bookmark/page/bookmarks.jschanged
bookmark/page/bookmarks.jsView
@@ -53,10 +53,18 @@
5353 tags => tags.filter(t => defaultTags.indexOf(t) < 0)
5454 )
5555 )
5656 const currentTag = h('h2', tag)
57 + const areMessages = computed(
58 + [api.bookmark.obs.taggedMessages(id, tag)],
59 + msgs => msgs.length > 0
60 + )
5761 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 + )
5967 })
6068
6169 pull(
6270 api.bookmark.pull.find(),

Built with git-ssb-web