Commit 4e9194f9311080f62105ee0761ec396409f1fd2d
page/settings: add filterSubscriptions setting
Mina Nagy Zaki committed on 1/18/2018, 3:39:04 PMParent: da0a9b3e6b3ddd0df96ce9cedd40e2b545c2ecf4
Files changed
locales/en.json | changed |
modules/page/html/render/settings.js | changed |
locales/en.json | ||
---|---|---|
@@ -196,6 +196,8 @@ | ||
196 | 196 | "one": "%s person from your network replied to this message on ", |
197 | 197 | "other": "%s people from your network replied to this message on " |
198 | 198 | }, |
199 | 199 | "(you)": "(you)", |
200 | - "Information": "Information" | |
201 | -} | |
200 | + "Information": "Information", | |
201 | + "Hide channel (un)subcribe messages": "Hide channel (un)subcribe messages", | |
202 | + "Channel Feed Options": "Channel Feed Options" | |
203 | +} |
modules/page/html/render/settings.js | ||
---|---|---|
@@ -26,8 +26,9 @@ | ||
26 | 26 | const theme = api.settings.obs.get('patchwork.theme', 'light') |
27 | 27 | const lang = api.settings.obs.get('patchwork.lang', '') |
28 | 28 | const fontSize = api.settings.obs.get('patchwork.fontSize', '') |
29 | 29 | const filterFollowing = api.settings.obs.get('filters.following') |
30 | + const filterSubscriptions = api.settings.obs.get('filters.subscriptions') | |
30 | 31 | const onlySubscribed = api.settings.obs.get('filters.onlySubscribed') |
31 | 32 | |
32 | 33 | var prepend = [ |
33 | 34 | h('PageHeading', [ |
@@ -95,8 +96,18 @@ | ||
95 | 96 | ]) |
96 | 97 | ]), |
97 | 98 | |
98 | 99 | h('section', [ |
100 | + h('h2', i18n('Channel Feed Options')), | |
101 | + | |
102 | + h('div', [ | |
103 | + checkbox(filterSubscriptions, { | |
104 | + label: i18n('Hide channel (un)subcribe messages') | |
105 | + }) | |
106 | + ]) | |
107 | + ]), | |
108 | + | |
109 | + h('section', [ | |
99 | 110 | h('h2', i18n('Information')), |
100 | 111 | |
101 | 112 | h('p', `${packageInfo.productName} ${packageInfo.version}`) |
102 | 113 | ]) |
Built with git-ssb-web