diff options
| author | Moonman <shitposterclub@gmail.com> | 2019-05-20 00:03:50 -0400 |
|---|---|---|
| committer | Moonman <shitposterclub@gmail.com> | 2019-05-20 00:03:50 -0400 |
| commit | fc9acf8fb660b04641a6c30114dfa5f245de6e8c (patch) | |
| tree | 296af1de56ed5d6808bfd4067aadabc99f3c3a4c /src/components/status/status.js | |
| parent | 5bf208f2d1de1e20964ab06b04561c170867090c (diff) | |
add tags to data and to status component
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 5b3d98c3..04958eea 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -289,6 +289,13 @@ const Status = { AvatarList }, methods: { + generateTagAttributes(tags) { + let res = {}; + for (let tag of tags) { + res['data-tag-'+tag.name] = tag.name; + } + return res; + }, visibilityIcon (visibility) { switch (visibility) { case 'private': |
