aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2023-01-09 16:28:20 +0100
committerTibor Frank <tifrank@cisco.com>2023-01-09 16:28:20 +0100
commit89c40769ccf9558024a23a4de1563355a39db5a8 (patch)
treec0b8ec45120e5d235b80720c55a74c2f06256b3f
parent3c5de2334555bd0fe6f92258c49635162db15bbb (diff)
C-Dash: Replace dcc.Loading by dbc.Spinner
Signed-off-by: Tibor Frank <tifrank@cisco.com> Change-Id: I3a31b12fc47c55cbeedd96c31f335e648145716e
-rw-r--r--csit.infra.dash/app/cdash/news/layout.py2
-rw-r--r--csit.infra.dash/app/cdash/report/layout.py2
-rw-r--r--csit.infra.dash/app/cdash/stats/layout.py4
-rw-r--r--csit.infra.dash/app/cdash/trending/layout.py26
4 files changed, 17 insertions, 17 deletions
diff --git a/csit.infra.dash/app/cdash/news/layout.py b/csit.infra.dash/app/cdash/news/layout.py
index 4032f1175c..31712d6902 100644
--- a/csit.infra.dash/app/cdash/news/layout.py
+++ b/csit.infra.dash/app/cdash/news/layout.py
@@ -358,7 +358,7 @@ class Layout:
return dbc.Col(
id="col-plotting-area",
children=[
- dcc.Loading(
+ dbc.Spinner(
children=[
dbc.Row(
id="plotting-area",
diff --git a/csit.infra.dash/app/cdash/report/layout.py b/csit.infra.dash/app/cdash/report/layout.py
index 9e293120ef..64e3b8bcde 100644
--- a/csit.infra.dash/app/cdash/report/layout.py
+++ b/csit.infra.dash/app/cdash/report/layout.py
@@ -343,7 +343,7 @@ class Layout:
return dbc.Col(
id="col-plotting-area",
children=[
- dcc.Loading(
+ dbc.Spinner(
children=[
dbc.Row(
id="plotting-area",
diff --git a/csit.infra.dash/app/cdash/stats/layout.py b/csit.infra.dash/app/cdash/stats/layout.py
index 49027765ec..2b88caaf04 100644
--- a/csit.infra.dash/app/cdash/stats/layout.py
+++ b/csit.infra.dash/app/cdash/stats/layout.py
@@ -246,7 +246,7 @@ class Layout:
self._add_navbar()
]
),
- dcc.Loading(
+ dbc.Spinner(
dbc.Offcanvas(
class_name="w-50",
id="offcanvas-metadata",
@@ -328,7 +328,7 @@ class Layout:
return dbc.Col(
id="col-plotting-area",
children=[
- dcc.Loading(
+ dbc.Spinner(
children=[
dbc.Row(
id="plotting-area",
diff --git a/csit.infra.dash/app/cdash/trending/layout.py b/csit.infra.dash/app/cdash/trending/layout.py
index 85f6cbbaba..48b480193b 100644
--- a/csit.infra.dash/app/cdash/trending/layout.py
+++ b/csit.infra.dash/app/cdash/trending/layout.py
@@ -249,6 +249,9 @@ class Layout:
id="div-main",
className="small",
children=[
+ dcc.Store(id="store-selected-tests"),
+ dcc.Store(id="store-control-panel"),
+ dcc.Location(id="url", refresh=False),
dbc.Row(
id="row-navbar",
class_name="g-0",
@@ -256,7 +259,15 @@ class Layout:
self._add_navbar()
]
),
- dcc.Loading(
+ dbc.Row(
+ id="row-main",
+ class_name="g-0",
+ children=[
+ self._add_ctrl_col(),
+ self._add_plotting_col()
+ ]
+ ),
+ dbc.Spinner(
dbc.Offcanvas(
class_name="w-50",
id="offcanvas-metadata",
@@ -268,17 +279,6 @@ class Layout:
dbc.Row(id="metadata-hdrh-graph")
]
)
- ),
- dbc.Row(
- id="row-main",
- class_name="g-0",
- children=[
- dcc.Store(id="store-selected-tests"),
- dcc.Store(id="store-control-panel"),
- dcc.Location(id="url", refresh=False),
- self._add_ctrl_col(),
- self._add_plotting_col()
- ]
)
]
)
@@ -342,7 +342,7 @@ class Layout:
return dbc.Col(
id="col-plotting-area",
children=[
- dcc.Loading(
+ dbc.Spinner(
children=[
dbc.Row(
id="plotting-area",