git ssb

16+

Dominic / patchbay



Commit 5149067cc270bfcbf301fd7c1db66cd15659a53f

have unread show state show statically on \noitifications \public \private pages

mixmix committed on 9/23/2018, 9:03:08 AM
Parent: c464b3bd29a2fa04962a718c4ae30bf42216491e

Files changed

app/page/thread.jschanged
message/html/layout/default.jschanged
message/html/meta/unread.jschanged
app/page/thread.jsView
@@ -47,9 +47,9 @@
4747 channelInput.disabled = true
4848 })
4949
5050 const content = map(messages, m => {
51- const message = api.message.html.render(resolve(m), {pageId: root, showUnread: true})
51 + const message = api.message.html.render(resolve(m), { pageId: root })
5252 markReadWhenVisible(message)
5353 return message
5454 }, { comparer })
5555
message/html/layout/default.jsView
@@ -18,9 +18,9 @@
1818 exports.create = (api) => {
1919 return nest('message.html.layout', messageLayout)
2020
2121 function messageLayout (msg, opts = {}) {
22- const { layout, showUnread } = opts
22 + const { layout, showUnread = true } = opts
2323 if (!(layout === undefined || layout === 'default')) return
2424
2525 var { author, timestamp, meta, action, backlinks } = api.message.html
2626 if (!isMsg(msg.key)) action = () => {}
message/html/meta/unread.jsView
@@ -12,9 +12,9 @@
1212 return nest('message.html.meta', unread)
1313
1414 // UnreadFeature (search codebase for this if extracting)
1515 function unread (msg) {
16- return h('i.unread.fa.fa-bell', {
16 + return h('i.unread.fa.fa-star', {
1717 title: 'A new message'
1818 })
1919 }
2020 }

Built with git-ssb-web