git ssb

16+

Dominic / patchbay



Tree: ed00f21688c47a809f1724a50ce7a3239f9929a6

Files: ed00f21688c47a809f1724a50ce7a3239f9929a6 / message / html / quote.js

497 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.gives = nest('message.html.quote')
5
6exports.needs = nest({
7 'app.sync.goTo': 'first'
8})
9
10exports.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