This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/widgets/category-link.js.es6
2018-06-15 17:03:24 +02:00

11 lines
337 B
JavaScript

import RawHtml from "discourse/widgets/raw-html";
import { categoryBadgeHTML } from "discourse/helpers/category-link";
// Right now it's RawHTML. Eventually it should emit nodes
export default class CategoryLink extends RawHtml {
constructor(attrs) {
attrs.html = categoryBadgeHTML(attrs.category, attrs);
super(attrs);
}
}