From a7e8095bdaa6ebec05a20e76c6d936827f586731 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 12 Mar 2026 15:31:16 +0100 Subject: show child count via nku --- ui/src/components/props.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ui/src/components') diff --git a/ui/src/components/props.rs b/ui/src/components/props.rs index db59019..7bc30d7 100644 --- a/ui/src/components/props.rs +++ b/ui/src/components/props.rs @@ -36,10 +36,9 @@ markup::define! { VISI_HIDDEN => {p.visibility{@tr(ri.lang, "prop.vis.hidden")}} VISI_VISIBLE | _ => {} } - // TODO - // @if !nku.node.children.is_empty() { - // p { @format!("{} items", nku.node.children.len()) } - // } + @if nku.child_count > 0 { + p { @format!("{} items", nku.child_count) } + } @for (kind, value) in nku.node.get(NO_RATINGS).unwrap_or(EMPTY).entries::() { @match TypedTag::new(kind) { RTYP_YOUTUBE_LIKES => {p.likes{ @format_count(value as usize) " Likes" }} -- cgit v1.3