Commit 6564ad1491e92cadd2cd0c9f59444b6f8c8cdaf2
add profile tab
Matt McKegg committed on 2/16/2017, 5:22:33 AMParent: e683e2d726f6de44f857b0af565a6ed5d3376cfd
Files changed
main-window.js | changed |
main-window.js | |||
---|---|---|---|
@@ -19,12 +19,14 @@ | |||
19 | 19 … | require('./plugs'), | |
20 | 20 … | require('patchcore') | |
21 | 21 … | ) | |
22 | 22 … | var api = entry(sockets, nest({ | |
23 | - 'page.html.render': 'first' | ||
23 … | + 'page.html.render': 'first', | ||
24 … | + 'keys.sync.id': 'first' | ||
24 | 25 … | })) | |
25 | 26 … | ||
26 | 27 … | var renderPage = api.page.html.render | |
28 … | + var id = api.keys.sync.id() | ||
27 | 29 … | ||
28 | 30 … | var searchTimer = null | |
29 | 31 … | var searchBox = h('input.search', { | |
30 | 32 … | type: 'search', | |
@@ -48,9 +50,9 @@ | |||
48 | 50 … | var views = MutantDict({ | |
49 | 51 … | // preload tabs (and subscribe to update notifications) | |
50 | 52 … | '/public': renderPage('/public'), | |
51 | 53 … | '/private': renderPage('/private'), | |
52 | - // [ssbClient.id]: renderPage(ssbClient.id), | ||
54 … | + [id]: renderPage(id), | ||
53 | 55 … | // '/notifications': renderPage('/notifications') | |
54 | 56 … | }) | |
55 | 57 … | ||
56 | 58 … | var lastViewed = {} | |
@@ -99,9 +101,9 @@ | |||
99 | 101 … | ]), | |
100 | 102 … | h('span.appTitle', ['Patchwork']), | |
101 | 103 … | h('span', [ searchBox ]), | |
102 | 104 … | h('span.nav', [ | |
103 | - // tab('Profile', ssbClient.id), | ||
105 … | + tab('Profile', id), | ||
104 | 106 … | // tab('Mentions', '/notifications') | |
105 | 107 … | ]) | |
106 | 108 … | ]), | |
107 | 109 … | mainElement |
Built with git-ssb-web