Files: 741ac0a148c2a18f2bc5d54ad7582e7c82430d2b / 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