Commit 5149067cc270bfcbf301fd7c1db66cd15659a53f
have unread show state show statically on \noitifications \public \private pages
mixmix committed on 9/23/2018, 9:03:08 AMParent: c464b3bd29a2fa04962a718c4ae30bf42216491e
Files changed
app/page/thread.js | changed |
message/html/layout/default.js | changed |
message/html/meta/unread.js | changed |
app/page/thread.js | |||
---|---|---|---|
@@ -47,9 +47,9 @@ | |||
47 | 47 … | channelInput.disabled = true | |
48 | 48 … | }) | |
49 | 49 … | ||
50 | 50 … | 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 }) | ||
52 | 52 … | markReadWhenVisible(message) | |
53 | 53 … | return message | |
54 | 54 … | }, { comparer }) | |
55 | 55 … |
message/html/layout/default.js | ||
---|---|---|
@@ -18,9 +18,9 @@ | ||
18 | 18 … | exports.create = (api) => { |
19 | 19 … | return nest('message.html.layout', messageLayout) |
20 | 20 … | |
21 | 21 … | function messageLayout (msg, opts = {}) { |
22 | - const { layout, showUnread } = opts | |
22 … | + const { layout, showUnread = true } = opts | |
23 | 23 … | if (!(layout === undefined || layout === 'default')) return |
24 | 24 … | |
25 | 25 … | var { author, timestamp, meta, action, backlinks } = api.message.html |
26 | 26 … | if (!isMsg(msg.key)) action = () => {} |
message/html/meta/unread.js | ||
---|---|---|
@@ -12,9 +12,9 @@ | ||
12 | 12 … | return nest('message.html.meta', unread) |
13 | 13 … | |
14 | 14 … | // UnreadFeature (search codebase for this if extracting) |
15 | 15 … | function unread (msg) { |
16 | - return h('i.unread.fa.fa-bell', { | |
16 … | + return h('i.unread.fa.fa-star', { | |
17 | 17 … | title: 'A new message' |
18 | 18 … | }) |
19 | 19 … | } |
20 | 20 … | } |
Built with git-ssb-web