style for actionable group filter tag

This commit is contained in:
RossAscends
2023-05-08 09:27:32 +09:00
parent d1369004bb
commit 96673ba684
2 changed files with 17 additions and 0 deletions

View File

@@ -190,6 +190,11 @@ function appendTagToList(listElement, tag, { removable, selectable, action }) {
const removeButton = tagElement.find(".tag_remove");
removable ? removeButton.show() : removeButton.hide();
if (tag.name === 'Groups') {
tagElement.find('.tag_name').addClass('fa-solid fa-users');
tagElement.find('.tag_name').text('');
}
if (selectable) {
tagElement.on('click', () => onTagFilterClick.bind(tagElement)(listElement));
}
@@ -249,6 +254,7 @@ function printTags() {
for (const tag of Object.values(ACTIONABLE_TAGS)) {
appendTagToList('#rm_tag_filter', tag, { removable: false, selectable: false, action: tag.action });
}
for (const tag of tagsToDisplay) {