git ssb

10+

Matt McKegg / patchwork



Commit 6564ad1491e92cadd2cd0c9f59444b6f8c8cdaf2

add profile tab

Matt McKegg committed on 2/16/2017, 5:22:33 AM
Parent: e683e2d726f6de44f857b0af565a6ed5d3376cfd

Files changed

main-window.jschanged
main-window.jsView
@@ -19,12 +19,14 @@
1919 require('./plugs'),
2020 require('patchcore')
2121 )
2222 var api = entry(sockets, nest({
23- 'page.html.render': 'first'
23 + 'page.html.render': 'first',
24 + 'keys.sync.id': 'first'
2425 }))
2526
2627 var renderPage = api.page.html.render
28 + var id = api.keys.sync.id()
2729
2830 var searchTimer = null
2931 var searchBox = h('input.search', {
3032 type: 'search',
@@ -48,9 +50,9 @@
4850 var views = MutantDict({
4951 // preload tabs (and subscribe to update notifications)
5052 '/public': renderPage('/public'),
5153 '/private': renderPage('/private'),
52- // [ssbClient.id]: renderPage(ssbClient.id),
54 + [id]: renderPage(id),
5355 // '/notifications': renderPage('/notifications')
5456 })
5557
5658 var lastViewed = {}
@@ -99,9 +101,9 @@
99101 ]),
100102 h('span.appTitle', ['Patchwork']),
101103 h('span', [ searchBox ]),
102104 h('span.nav', [
103- // tab('Profile', ssbClient.id),
105 + tab('Profile', id),
104106 // tab('Mentions', '/notifications')
105107 ])
106108 ]),
107109 mainElement

Built with git-ssb-web