FIX: Do not show latest count in tabs on tag lists

This commit is contained in:
Penar Musaraj 2019-09-12 22:42:48 -04:00
parent 025d4ee91f
commit 6bbda8eae9

View File

@ -19,7 +19,10 @@ const NavItem = Discourse.Model.extend({
displayName(categoryName, name, count) {
count = count || 0;
if (name === "latest" && !Discourse.Site.currentProp("mobileView")) {
if (
name === "latest" &&
(!Discourse.Site.currentProp("mobileView") || this.tagId !== undefined)
) {
count = 0;
}