Commit 1be7c1ab56d26c85f32d5533075f80a3cc216d5b
also confirm unblock!
Matt McKegg committed on 10/18/2017, 10:28:37 AMParent: 6be75bf8038ec9c4d1cdba801434c1ef4db7c753
Files changed
plugs/contact/html/follow-toggle.js | changed |
plugs/contact/html/follow-toggle.js | ||
---|---|---|
@@ -55,9 +55,9 @@ | ||
55 | 55 | return when(youBlock, [ |
56 | 56 | h('a.ToggleButton.-unblocking', { |
57 | 57 | 'href': '#', |
58 | 58 | 'title': i18n('Click to unblock'), |
59 | - 'ev-click': send(api.contact.async.unblock, id) | |
59 | + 'ev-click': send(unblock, id) | |
60 | 60 | }, i18n('Blocked')) |
61 | 61 | ], [ |
62 | 62 | when(youFollow, |
63 | 63 | h('a.ToggleButton.-unsubscribe', { |
@@ -88,5 +88,14 @@ | ||
88 | 88 | contact: id, |
89 | 89 | blocking: true |
90 | 90 | }) |
91 | 91 | } |
92 | + | |
93 | + function unblock (id) { | |
94 | + // displays message confirm | |
95 | + api.message.async.publish({ | |
96 | + type: 'contact', | |
97 | + contact: id, | |
98 | + blocking: false | |
99 | + }) | |
100 | + } | |
92 | 101 | } |
Built with git-ssb-web