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