mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Expand globally pinned topics correctly (#24266)
and ensure proper re-render when moving between category/latest pages
Followup to 82d6d691ee
This commit is contained in:
@@ -203,7 +203,7 @@ export default class DiscoveryTopics extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
get expandAllGloballyPinned() {
|
||||
get expandGloballyPinned() {
|
||||
return !this.expandAllPinned;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user