Hide snapshot table if there are no rows to display.
* Hide snapshot table if there are no rows to display.
The snapshot table should not display if there are no rows.
* Fix format
@@ -97,6 +97,10 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg, GMsg>)
}
pub fn view(model: &Model, cache: &ArcCache) -> Node<Msg> {
+ if model.rows.is_empty() {
+ return empty!();
+ }
+
panel::view(
h3![class![C.py_4, C.font_normal, C.text_lg], "Snapshots"],
div![
