git ssb

10+

Matt McKegg / patchwork



Commit 4e9194f9311080f62105ee0761ec396409f1fd2d

page/settings: add filterSubscriptions setting

Mina Nagy Zaki committed on 1/18/2018, 3:39:04 PM
Parent: da0a9b3e6b3ddd0df96ce9cedd40e2b545c2ecf4

Files changed

locales/en.jsonchanged
modules/page/html/render/settings.jschanged
locales/en.jsonView
@@ -196,6 +196,8 @@
196196 "one": "%s person from your network replied to this message on ",
197197 "other": "%s people from your network replied to this message on "
198198 },
199199 "(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.jsView
@@ -26,8 +26,9 @@
2626 const theme = api.settings.obs.get('patchwork.theme', 'light')
2727 const lang = api.settings.obs.get('patchwork.lang', '')
2828 const fontSize = api.settings.obs.get('patchwork.fontSize', '')
2929 const filterFollowing = api.settings.obs.get('filters.following')
30+ const filterSubscriptions = api.settings.obs.get('filters.subscriptions')
3031 const onlySubscribed = api.settings.obs.get('filters.onlySubscribed')
3132
3233 var prepend = [
3334 h('PageHeading', [
@@ -95,8 +96,18 @@
9596 ])
9697 ]),
9798
9899 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', [
99110 h('h2', i18n('Information')),
100111
101112 h('p', `${packageInfo.productName} ${packageInfo.version}`)
102113 ])

Built with git-ssb-web