Commit f86b6960484fc0d6810893b57c1d3dbaf5de46aa
fix subscribe button bug
mix irving committed on 2/17/2018, 6:18:04 AMParent: de181f394077c4a03e590b5325f9cb51c0ac27df
Files changed
channel/html/subscribe.js | changed |
channel/html/subscribe.js | ||
---|---|---|
@@ -16,9 +16,9 @@ | ||
16 | 16 … | channel = channel.replace(/^#/, '') |
17 | 17 … | const strings = api.translations.sync.strings() |
18 | 18 … | const { subscribe, unsubscribe } = api.channel.async |
19 | 19 … | |
20 | - when(api.app.obs.pluginsOk(), | |
20 … | + return when(api.app.obs.pluginsOk(), | |
21 | 21 … | when(api.channel.obs.isSubscribedTo(channel), |
22 | 22 … | h('Button', { 'ev-click': () => unsubscribe(channel) }, strings.channelShow.action.unsubscribe), |
23 | 23 … | h('Button -primary', { 'ev-click': () => subscribe(channel) }, strings.channelShow.action.subscribe) |
24 | 24 … | ) |
Built with git-ssb-web