mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08: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:
parent
f20b6a0cc3
commit
9dd4d97289
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user