DEV: Remove unused tag-drop-link component (#30849)

This commit is contained in:
Jarek Radosz
2025-01-18 10:48:42 +01:00
committed by GitHub
parent cf0a4a7e11
commit 56f9a174fc
2 changed files with 0 additions and 44 deletions

View File

@ -1,43 +0,0 @@
import Component from "@ember/component";
import {
attributeBindings,
classNameBindings,
tagName,
} from "@ember-decorators/component";
import discourseComputed from "discourse/lib/decorators";
import getURL from "discourse/lib/get-url";
import DiscourseURL from "discourse/lib/url";
@tagName("a")
@classNameBindings(
":tag-badge-wrapper",
":badge-wrapper",
":bullet",
"tagClass"
)
@attributeBindings("href")
export default class TagDropLink extends Component {
@discourseComputed("tagId", "category")
href(tagId, category) {
let path;
if (category) {
path = "/tags" + category.path + "/" + tagId;
} else {
path = "/tag/" + tagId;
}
return getURL(path);
}
@discourseComputed("tagId")
tagClass(tagId) {
return "tag-" + tagId;
}
click(e) {
e.preventDefault();
DiscourseURL.routeTo(this.href);
return true;
}
}