Files: c9ba3630ee9b32a904d47de7b87c1e101e5d59c5 / modules / message / html / tag.js
395 bytesRaw
1 | var { h, computed, when } = require('mutant') |
2 | var nest = require('depnest') |
3 | |
4 | exports.needs = nest({ |
5 | 'sheet.editTags': 'first' |
6 | }) |
7 | |
8 | exports.gives = nest('message.html.action') |
9 | |
10 | exports.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