2023-03-28 09:46:53 -04:00
|
|
|
/* This component is used in the Category banners theme component */
|
|
|
|
/* https://meta.discourse.org/t/category-banners/86241 */
|
|
|
|
import MountWidget from "discourse/components/mount-widget";
|
|
|
|
|
|
|
|
export default class CategoryIcon extends MountWidget {
|
|
|
|
widget = "category-icon";
|
2023-03-30 12:57:19 -04:00
|
|
|
classNames = ["category-icon-widget-wrapper"];
|
2023-03-28 09:46:53 -04:00
|
|
|
|
|
|
|
buildArgs() {
|
|
|
|
return { category: this.category };
|
|
|
|
}
|
|
|
|
|
|
|
|
didReceiveAttrs() {
|
|
|
|
super.didReceiveAttrs();
|
|
|
|
this.queueRerender();
|
|
|
|
}
|
|
|
|
}
|