Commit e9b818a585383638585d4b571a3c8ce262874218
Merge branch 'hops' of github.com:ssbc/patchbay into hops
mixmix committed on 5/29/2019, 2:31:01 AMParent: 0524824bf114bd868c66193a7b95a1d34b345240
Parent: 97f565d656e4a30ba8a5a5b10b85ad787ba4576e
Files changed
app/html/settings/friend-hops.js | changed |
app/html/settings/friend-hops.js | ||
---|---|---|
@@ -29,18 +29,18 @@ | ||
29 | 29 | }) |
30 | 30 | |
31 | 31 | return { |
32 | 32 | title: 'Friend Hops', |
33 | - body: h('Friends', [ | |
33 | + body: h('FriendHops', [ | |
34 | 34 | h('div.description', [ |
35 | 35 | 'Specify whose content you replicate, and thus the size and shape of your network.' |
36 | 36 | ]), |
37 | 37 | h('div.slider', [ |
38 | 38 | h('datalist', { id: 'friends-hop-datalist' }, [ |
39 | - h('option', { value: 0, label: '0' }), | |
40 | - h('option', { value: 1, label: '1' }), | |
41 | - h('option', { value: 2, label: '2' }), | |
42 | - h('option', { value: 3, label: '3' }) | |
39 | + h('option', { value: 0, label: '0 - Only your messages' }), | |
40 | + h('option', { value: 1, label: '1 - You and your friend\'s messages' }), | |
41 | + h('option', { value: 2, label: '2 - You, your friend\'s, and your friend\'s friend\'s messages' }), | |
42 | + h('option', { value: 3, label: '3 - You, your friend\'s, your friend\'s friend\'s, and their friend\'s messages' }) | |
43 | 43 | ]), |
44 | 44 | h('input', { |
45 | 45 | type: 'range', |
46 | 46 | attributes: { list: 'friends-hop-datalist' }, |
@@ -58,19 +58,8 @@ | ||
58 | 58 | ]) |
59 | 59 | }), |
60 | 60 | ]) |
61 | 61 | } |
62 | - | |
63 | - function updateHops (hops) { | |
64 | - onceTrue(api.sbot.obs.connection, sbot => { | |
65 | - if (hops === go) pubs.set({}) | |
66 | - else { | |
67 | - sbot.friendPub.pubsWithinHops(hops, (_, pubsInHops) => { | |
68 | - pubs.set(pubsInHops) | |
69 | - }) | |
70 | - } | |
71 | - }) | |
72 | - } | |
73 | 62 | } |
74 | 63 | |
75 | 64 | function updateConfig (hops) { |
76 | 65 | const configCustom = api.config.sync.getCustom() |
Built with git-ssb-web