add tags to data and to status component
This commit is contained in:
parent
5bf208f2d1
commit
fc9acf8fb6
3 changed files with 10 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue