DEV: Use new is_hot_topic serializer (#73)

This commit is contained in:
Jordan Vidrine
2025-03-24 12:05:10 -05:00
committed by GitHub
parent 969e2b7969
commit dabd9a159a
2 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
"maximum_discourse_version": null,
"assets": {},
"modifiers": {
"svg_icons": ["fire"]
"svg_icons": ["fire"],
"serialize_topic_is_hot": true
},
"components": [
"https://github.com/discourse/discourse-sidebar-new-topic-button.git",
@@ -6,12 +6,8 @@ import { i18n } from "discourse-i18n";
export default class TopicStatusColumn extends Component {
@service siteSettings;
get heatMap() {
return this.args.topic.views > this.siteSettings.topic_views_heat_medium;
}
get badge() {
if (this.heatMap) {
if (this.args.topic.is_hot) {
return {
icon: "fire",
text: "topic_hot",