DEV: Use new is_hot_topic serializer (#73)
This commit is contained in:
+2
-1
@@ -9,7 +9,8 @@
|
|||||||
"maximum_discourse_version": null,
|
"maximum_discourse_version": null,
|
||||||
"assets": {},
|
"assets": {},
|
||||||
"modifiers": {
|
"modifiers": {
|
||||||
"svg_icons": ["fire"]
|
"svg_icons": ["fire"],
|
||||||
|
"serialize_topic_is_hot": true
|
||||||
},
|
},
|
||||||
"components": [
|
"components": [
|
||||||
"https://github.com/discourse/discourse-sidebar-new-topic-button.git",
|
"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 {
|
export default class TopicStatusColumn extends Component {
|
||||||
@service siteSettings;
|
@service siteSettings;
|
||||||
|
|
||||||
get heatMap() {
|
|
||||||
return this.args.topic.views > this.siteSettings.topic_views_heat_medium;
|
|
||||||
}
|
|
||||||
|
|
||||||
get badge() {
|
get badge() {
|
||||||
if (this.heatMap) {
|
if (this.args.topic.is_hot) {
|
||||||
return {
|
return {
|
||||||
icon: "fire",
|
icon: "fire",
|
||||||
text: "topic_hot",
|
text: "topic_hot",
|
||||||
|
|||||||
Reference in New Issue
Block a user