mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use transformed useMobileLayout
value in topic-list/item (#31128)
This commit is contained in:
parent
7c50543da5
commit
a8e10521c3
@ -58,7 +58,7 @@ export default class Item extends Component {
|
|||||||
let expandPinned;
|
let expandPinned;
|
||||||
if (
|
if (
|
||||||
!this.args.topic.pinned ||
|
!this.args.topic.pinned ||
|
||||||
(this.site.mobileView && !this.siteSettings.show_pinned_excerpt_mobile) ||
|
(this.useMobileLayout && !this.siteSettings.show_pinned_excerpt_mobile) ||
|
||||||
(this.site.desktopView && !this.siteSettings.show_pinned_excerpt_desktop)
|
(this.site.desktopView && !this.siteSettings.show_pinned_excerpt_desktop)
|
||||||
) {
|
) {
|
||||||
expandPinned = false;
|
expandPinned = false;
|
||||||
@ -71,7 +71,7 @@ export default class Item extends Component {
|
|||||||
return applyValueTransformer(
|
return applyValueTransformer(
|
||||||
"topic-list-item-expand-pinned",
|
"topic-list-item-expand-pinned",
|
||||||
expandPinned,
|
expandPinned,
|
||||||
{ topic: this.args.topic, mobileView: this.site.mobileView }
|
{ topic: this.args.topic, mobileView: this.useMobileLayout }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user