From 1f2a3cdd3e0cd1f9ae5c232274e9adccf73b4e50 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 5 Jun 2023 09:49:22 +0000 Subject: C-Dash: Start telemetry accordions collapsed Change-Id: I001377706a757114465094188236fc2f5a9f668a Signed-off-by: Tibor Frank --- csit.infra.dash/app/cdash/trending/layout.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/csit.infra.dash/app/cdash/trending/layout.py b/csit.infra.dash/app/cdash/trending/layout.py index 97181e199d..028f592d95 100644 --- a/csit.infra.dash/app/cdash/trending/layout.py +++ b/csit.infra.dash/app/cdash/trending/layout.py @@ -885,10 +885,9 @@ class Layout: dbc.Accordion( children=acc_items, class_name="g-0 p-0", + start_collapsed=True, always_open=True, - flush=True, - active_item=\ - [f"item-{i}" for i in range(len(acc_items))] + flush=True ), class_name="g-0 p-0" ), @@ -934,8 +933,8 @@ class Layout: dbc.Accordion( panels, class_name="g-0 p-1", - always_open=True, - active_item=[f"item-{i}" for i in range(len(panels))] + start_collapsed=True, + always_open=True ) ) -- cgit 1.2.3-korg