diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-12 15:31:16 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-12 15:31:16 +0100 |
| commit | a7e8095bdaa6ebec05a20e76c6d936827f586731 (patch) | |
| tree | 34c190e5e41e37279212ff1be06a5f2bd5695ee7 /ui/src/components | |
| parent | 7dee77aaf7b663f65c7f0da514839b7ccc965f52 (diff) | |
| download | jellything-a7e8095bdaa6ebec05a20e76c6d936827f586731.tar jellything-a7e8095bdaa6ebec05a20e76c6d936827f586731.tar.bz2 jellything-a7e8095bdaa6ebec05a20e76c6d936827f586731.tar.zst | |
show child count via nku
Diffstat (limited to 'ui/src/components')
| -rw-r--r-- | ui/src/components/props.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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::<f64>() { @match TypedTag::new(kind) { RTYP_YOUTUBE_LIKES => {p.likes{ @format_count(value as usize) " Likes" }} |