git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 741ac0a148c2a18f2bc5d54ad7582e7c82430d2b

Files: 741ac0a148c2a18f2bc5d54ad7582e7c82430d2b / modules / message / html / tag.js

395 bytesRaw
1var { h, computed, when } = require('mutant')
2var nest = require('depnest')
3
4exports.needs = nest({
5 'sheet.editTags': 'first'
6})
7
8exports.gives = nest('message.html.action')
9
10exports.create = (api) => {
11 return nest('message.html.action', msg => {
12 return h('a.tag', {
13 href: '#',
14 'ev-click': () => api.sheet.editTags({ msgId: msg.key }, console.log)
15 }, 'Tag')
16 })
17}
18

Built with git-ssb-web