A platform for community discussion. Free, open, simple.
FIX: Expand globally pinned topics correctly (#24266)
David Taylor9dd4d972899c
diff --git a/app/assets/javascripts/discourse/app/components/discovery/topics.js b/app/assets/javascripts/discourse/app/components/discovery/topics.jsindex 137f5394b52..01e3a5f3da7 100644--- a/app/assets/javascripts/discourse/app/components/discovery/topics.js+++ b/app/assets/javascripts/discourse/app/components/discovery/topics.js@@ -203,7 +203,7 @@ export default class DiscoveryTopics extends Component {);}- get expandAllGloballyPinned() {+ get expandGloballyPinned() {return !this.expandAllPinned;}diff --git a/app/assets/javascripts/discourse/app/components/topic-list-item.js b/app/assets/javascripts/discourse/app/components/topic-list-item.jsindex 4f22a546115..04526a19ba6 100644--- a/app/assets/javascripts/discourse/app/components/topic-list-item.js+++ b/app/assets/javascripts/discourse/app/components/topic-list-item.js@@ -70,7 +70,7 @@ export default Component.extend({this.renderTopicListItem();},- @observes("topic.pinned")+ @observes("topic.pinned", "expandGloballyPinned", "expandAllPinned")renderTopicListItem() {const template = findRawTemplate("list/topic-list-item");if (template) {