mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 19:55:59 +08:00
UX: Don't display participants count if it is zero.
This can happen for megatopics where we don't send down the payload for participants count.
This commit is contained in:
parent
fed86225c8
commit
4c6a0a4046
@ -125,12 +125,15 @@ createWidget("topic-map-summary", {
|
||||
h("h4", I18n.t("views_lowercase", { count: attrs.topicViews }))
|
||||
])
|
||||
);
|
||||
contents.push(
|
||||
h("li.secondary", [
|
||||
numberNode(attrs.participantCount),
|
||||
h("h4", I18n.t("users_lowercase", { count: attrs.participantCount }))
|
||||
])
|
||||
);
|
||||
|
||||
if (attrs.participantCount > 0) {
|
||||
contents.push(
|
||||
h("li.secondary", [
|
||||
numberNode(attrs.participantCount),
|
||||
h("h4", I18n.t("users_lowercase", { count: attrs.participantCount }))
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
if (attrs.topicLikeCount) {
|
||||
contents.push(
|
||||
|
Loading…
x
Reference in New Issue
Block a user