Files: 9c5fb9afa9248c901294db9eac5e350da9bc055d / message / html / reply.js
499 bytesRaw
1 | var h = require('mutant/h') |
2 | var nest = require('depnest') |
3 | |
4 | exports.gives = nest('message.html.reply') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.sync.goTo': 'first' |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | return nest('message.html.reply', function betterReply (msg) { |
12 | return h('i.MessageReply.fa.fa-comment', |
13 | { |
14 | title: 'reply', |
15 | 'ev-click': (ev) => { |
16 | ev.preventDefault() |
17 | api.app.sync.goTo({ action: 'reply', key: msg.key, value: msg.value }) |
18 | } |
19 | } |
20 | ) |
21 | }) |
22 | } |
23 |
Built with git-ssb-web