git ssb

16+

Dominic / patchbay



Commit 4f3f6158b887d26ebcd75874d1ea383b94be77f4

fix remaining handleClick dags

mix irving committed on 4/30/2017, 6:34:04 AM
Parent: cc1af9dac3bb37125de4be75e5055344960e9675

Files changed

app/html/page/notifications.jschanged
app/html/page/private.jschanged
app/html/page/profile.jschanged
app/html/page/public.jschanged
app/html/page/notifications.jsView
@@ -15,8 +15,9 @@
1515 'app.html': {
1616 filter: 'first',
1717 scroller: 'first'
1818 },
19 + 'app.sync.goTo': 'first',
1920 'feed.pull': {
2021 mentions: 'first',
2122 public: 'first'
2223 },
@@ -33,12 +34,12 @@
3334 menuItem: menuItem
3435 }
3536 })
3637
37- function menuItem (handleClick) {
38 + function menuItem () {
3839 return h('a', {
3940 style: { order: 3 },
40- 'ev-click': () => handleClick(route)
41 + 'ev-click': () => api.app.sync.goTo(route)
4142 }, route)
4243 }
4344
4445 function notificationsPage (path) {
app/html/page/private.jsView
@@ -16,8 +16,9 @@
1616 'app.html': {
1717 filter: 'first',
1818 scroller: 'first'
1919 },
20 + 'app.sync.goTo': 'first',
2021 'feed.pull.private': 'first',
2122 'keys.sync.id': 'first',
2223 'message.html': {
2324 compose: 'first',
@@ -34,12 +35,12 @@
3435 menuItem: menuItem
3536 }
3637 })
3738
38- function menuItem (handleClick) {
39 + function menuItem () {
3940 return h('a', {
4041 style: { order: 2 },
41- 'ev-click': () => handleClick(route)
42 + 'ev-click': () => api.app.sync.goTo(route)
4243 }, route)
4344 }
4445
4546 function privatePage (path) {
app/html/page/profile.jsView
@@ -8,9 +8,10 @@
88 exports.gives = nest({
99 'app.html': {
1010 page: true,
1111 menuItem: true
12- }
12 + },
13 + 'app.sync.goTo': 'first',
1314 })
1415
1516 exports.needs = nest({
1617 'about.html.edit': 'first',
@@ -31,12 +32,12 @@
3132 menuItem: menuItem
3233 }
3334 })
3435
35- function menuItem (handleClick) {
36 + function menuItem () {
3637 return h('a', {
3738 style: { order: 0 },
38- 'ev-click': () => handleClick(api.keys.sync.id())
39 + 'ev-click': () => api.app.sync.goTo(api.keys.sync.id())
3940 }, '/profile')
4041 }
4142
4243 function profilePage (id) {
app/html/page/public.jsView
@@ -7,9 +7,10 @@
77 exports.gives = nest({
88 'app.html': {
99 page: true,
1010 menuItem: true
11- }
11 + },
12 + 'app.sync.goTo': 'first'
1213 })
1314
1415 exports.needs = nest({
1516 'app.html': {
@@ -32,12 +33,12 @@
3233 menuItem: menuItem
3334 }
3435 })
3536
36- function menuItem (handleClick) {
37 + function menuItem () {
3738 return h('a', {
3839 style: { order: 1 },
39- 'ev-click': () => handleClick(route)
40 + 'ev-click': () => api.app.sync.goTo(route)
4041 }, route)
4142 }
4243
4344 function publicPage (path) {

Built with git-ssb-web