git ssb

16+

Dominic / patchbay



Commit 8a63be115b8d79744a71a136638b8f5c7293a04f

quick patch to disable ssb-mutual

mix irving committed on 7/4/2018, 11:43:20 PM
Parent: f65e59e20db942a4f9f3250c67b8df054b0bafa9

Files changed

about/html/edit.jschanged
about/html/edit.jsView
@@ -38,9 +38,9 @@
3838
3939 // TODO refactor this to use obs better
4040 function edit (id) {
4141 // TODO - get this to wait till the connection is present !
42- var mutual = Mutual.init(api.sbot.obs.connection())
42 + // var mutual = Mutual.init(api.sbot.obs.connection())
4343
4444 var avatar = Struct({
4545 current: api.about.obs.imageUrl(id),
4646 new: MutantObject()
@@ -85,18 +85,19 @@
8585 })
8686
8787 var balances_div = h('div.balances')
8888
89- mutual.getAccountBalances(id, (error, balances) => {
90- if (balances == null) return ''
89 + // TODO install ssb-mutual correctly as a plugin, access it usual way
90 + // mutual.getAccountBalances(id, (error, balances) => {
91 + // if (balances == null) return ''
9192
92- var balance_els = []
93- Object.keys(balances).forEach(function (key) {
94- balances_div.appendChild(
95- h('div', `💰 ${balances[key]} ${key}`)
96- )
97- })
98- })
93 + // var balance_els = []
94 + // Object.keys(balances).forEach(function (key) {
95 + // balances_div.appendChild(
96 + // h('div', `💰 ${balances[key]} ${key}`)
97 + // )
98 + // })
99 + // })
99100
100101 return h('AboutEditor', [
101102 lightbox,
102103 h('section.avatar', [

Built with git-ssb-web