FIX: Do not show 'new or updated topics' for mobile categories page (#14490)
This banner should only show on the 'categories + latest topics' view, which is desktop-only https://meta.discourse.org/t/204979
This commit is contained in:
parent
4c2d5158c5
commit
b6937e936b
|
@ -6,6 +6,7 @@ import DiscourseURL from "discourse/lib/url";
|
|||
import { NotificationLevels } from "discourse/lib/notification-levels";
|
||||
import PreloadStore from "discourse/lib/preload-store";
|
||||
import User from "discourse/models/user";
|
||||
import Site from "discourse/models/site";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
|
||||
function isNew(topic) {
|
||||
|
@ -244,6 +245,7 @@ const TopicTrackingState = EmberObject.extend({
|
|||
if (
|
||||
filter === "categories" &&
|
||||
data.message_type === "latest" &&
|
||||
!Site.current().mobileView &&
|
||||
this.siteSettings.desktop_category_page_style ===
|
||||
"categories_and_latest_topics"
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue