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 }))
|
h("h4", I18n.t("views_lowercase", { count: attrs.topicViews }))
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
contents.push(
|
|
||||||
h("li.secondary", [
|
if (attrs.participantCount > 0) {
|
||||||
numberNode(attrs.participantCount),
|
contents.push(
|
||||||
h("h4", I18n.t("users_lowercase", { count: attrs.participantCount }))
|
h("li.secondary", [
|
||||||
])
|
numberNode(attrs.participantCount),
|
||||||
);
|
h("h4", I18n.t("users_lowercase", { count: attrs.participantCount }))
|
||||||
|
])
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (attrs.topicLikeCount) {
|
if (attrs.topicLikeCount) {
|
||||||
contents.push(
|
contents.push(
|
||||||
|
|
Loading…
Reference in New Issue