git ssb

2+

mixmix / ticktack



Commit ec7545f42881ca25d5d62a67b797b7ca4104ad11

make default addressBook page search

mix irving committed on 5/28/2018, 4:38:19 AM
Parent: ffabb0372683da2291d5b0fb3162cce7ba9c520c

Files changed

app/page/addressBook.jschanged
app/page/addressBook.jsView
@@ -18,21 +18,20 @@
1818 'contact.html.follow': 'first',
1919 'contact.obs.relationships': 'first',
2020 'history.sync.push': 'first',
2121 'keys.sync.id': 'first',
22- 'translations.sync.strings': 'first'
2322 })
2423
2524 exports.create = (api) => {
2625 return nest('app.page.addressBook', function (location) {
2726 // location here can expected to be: { page: 'addressBook', section: '...'}
27 + location = Object.assign({ section: SEARCH }, location)
2828
29- const strings = api.translations.sync.strings()
3029 const myKey = api.keys.sync.id()
3130 const relationships = api.contact.obs.relationships(myKey)
3231
3332 const SECTIONS = [FRIENDS, FOLLOWING, FOLLOWERS, SEARCH]
34- const section = location.section || FRIENDS
33 + const section = location.section
3534 if (!SECTIONS.includes(section)) throw new Error('AddressBook location must include valid section, got:', location)
3635
3736 const input = Value()
3837

Built with git-ssb-web