git ssb

16+

Dominic / patchbay



Tree: 6d8b19c2ddca9ab63af6775ccb64d0942a23d808

Files: 6d8b19c2ddca9ab63af6775ccb64d0942a23d808 / message / html / action / reply.js

434 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.needs = nest({
5 'app.sync.goTo': 'first'
6})
7
8exports.gives = nest('message.html.action')
9
10exports.create = (api) => {
11 return nest('message.html.action', function betterReply (msg) {
12 return h('a', {
13 href: '#',
14 'ev-click': (ev) => { ev.preventDefault(); api.app.sync.goTo({ action: 'reply', key: msg.key, value: msg.value }) }
15 }, 'Reply')
16 })
17}
18

Built with git-ssb-web