Commit 8a63be115b8d79744a71a136638b8f5c7293a04f
quick patch to disable ssb-mutual
mix irving committed on 7/4/2018, 11:43:20 PMParent: f65e59e20db942a4f9f3250c67b8df054b0bafa9
Files changed
about/html/edit.js | changed |
about/html/edit.js | ||
---|---|---|
@@ -38,9 +38,9 @@ | ||
38 | 38 … | |
39 | 39 … | // TODO refactor this to use obs better |
40 | 40 … | function edit (id) { |
41 | 41 … | // 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()) | |
43 | 43 … | |
44 | 44 … | var avatar = Struct({ |
45 | 45 … | current: api.about.obs.imageUrl(id), |
46 | 46 … | new: MutantObject() |
@@ -85,18 +85,19 @@ | ||
85 | 85 … | }) |
86 | 86 … | |
87 | 87 … | var balances_div = h('div.balances') |
88 | 88 … | |
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 '' | |
91 | 92 … | |
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 … | + // }) | |
99 | 100 … | |
100 | 101 … | return h('AboutEditor', [ |
101 | 102 … | lightbox, |
102 | 103 … | h('section.avatar', [ |
Built with git-ssb-web