Commit ec7545f42881ca25d5d62a67b797b7ca4104ad11
make default addressBook page search
mix irving committed on 5/28/2018, 4:38:19 AMParent: ffabb0372683da2291d5b0fb3162cce7ba9c520c
Files changed
app/page/addressBook.js | changed |
app/page/addressBook.js | ||
---|---|---|
@@ -18,21 +18,20 @@ | ||
18 | 18 … | 'contact.html.follow': 'first', |
19 | 19 … | 'contact.obs.relationships': 'first', |
20 | 20 … | 'history.sync.push': 'first', |
21 | 21 … | 'keys.sync.id': 'first', |
22 | - 'translations.sync.strings': 'first' | |
23 | 22 … | }) |
24 | 23 … | |
25 | 24 … | exports.create = (api) => { |
26 | 25 … | return nest('app.page.addressBook', function (location) { |
27 | 26 … | // location here can expected to be: { page: 'addressBook', section: '...'} |
27 … | + location = Object.assign({ section: SEARCH }, location) | |
28 | 28 … | |
29 | - const strings = api.translations.sync.strings() | |
30 | 29 … | const myKey = api.keys.sync.id() |
31 | 30 … | const relationships = api.contact.obs.relationships(myKey) |
32 | 31 … | |
33 | 32 … | const SECTIONS = [FRIENDS, FOLLOWING, FOLLOWERS, SEARCH] |
34 | - const section = location.section || FRIENDS | |
33 … | + const section = location.section | |
35 | 34 … | if (!SECTIONS.includes(section)) throw new Error('AddressBook location must include valid section, got:', location) |
36 | 35 … | |
37 | 36 … | const input = Value() |
38 | 37 … |
Built with git-ssb-web