DEV: add component for cross-theme compatibility (#18)
This commit is contained in:
parent
8f2225d981
commit
0949a8108a
|
@ -0,0 +1,16 @@
|
|||
/* 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";
|
||||
|
||||
buildArgs() {
|
||||
return { category: this.category };
|
||||
}
|
||||
|
||||
didReceiveAttrs() {
|
||||
super.didReceiveAttrs();
|
||||
this.queueRerender();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue