git ssb

10+

Matt McKegg / patchwork



Commit aa774015a9a51370c874e52e6602d2df530d7186

show pending updates on search page (click to reload)

Matt McKegg committed on 6/30/2017, 2:03:59 AM
Parent: 6d24d3b0ec25f55f73bfd1236846ed7f528a28f6

Files changed

modules/page/html/render/search.jschanged
modules/page/html/render/search.jsView
@@ -31,8 +31,12 @@
3131 const searchHeader = h('div', {className: 'PageHeading'}, [
3232 h('h1', [h('strong', 'Search Results:'), ' ', query.join(' ')])
3333 ])
3434
35+ var updateLoader = h('a Notifier -loader', { href: '#', 'ev-click': refresh }, [
36+ 'Show ', h('strong', [updates]), ' ', plural(updates, 'update', 'updates')
37+ ])
38+
3539 var content = Proxy()
3640 var container = h('Scroller', {
3741 style: { overflow: 'auto' }
3842 }, [
@@ -72,9 +76,12 @@
7276 })
7377 ],
7478 uniqueKey: 'search'
7579 }, [
76- h('div.main', container)
80+ h('div.main', [
81+ when(updates, updateLoader),
82+ container
83+ ])
7784 ])
7885
7986 // scoped
8087

Built with git-ssb-web