git ssb

2+

mixmix / ticktack



Commit f86b6960484fc0d6810893b57c1d3dbaf5de46aa

fix subscribe button bug

mix irving committed on 2/17/2018, 6:18:04 AM
Parent: de181f394077c4a03e590b5325f9cb51c0ac27df

Files changed

channel/html/subscribe.jschanged
channel/html/subscribe.jsView
@@ -16,9 +16,9 @@
1616 channel = channel.replace(/^#/, '')
1717 const strings = api.translations.sync.strings()
1818 const { subscribe, unsubscribe } = api.channel.async
1919
20- when(api.app.obs.pluginsOk(),
20 + return when(api.app.obs.pluginsOk(),
2121 when(api.channel.obs.isSubscribedTo(channel),
2222 h('Button', { 'ev-click': () => unsubscribe(channel) }, strings.channelShow.action.unsubscribe),
2323 h('Button -primary', { 'ev-click': () => subscribe(channel) }, strings.channelShow.action.subscribe)
2424 )

Built with git-ssb-web