git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: c391dccdd6de62d41151a763ea688e5244384f94

Files: c391dccdd6de62d41151a763ea688e5244384f94 / 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