Skip to content

Commit

Permalink
Merge pull request #151 from TeachMeTW/Cherry-Pick-DATA
Browse files Browse the repository at this point in the history
Revert Data Page
  • Loading branch information
shankari authored Oct 30, 2024
2 parents 6b6ebad + ae1e290 commit 5e1b235
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 149 deletions.
13 changes: 13 additions & 0 deletions app_sidebar_collapsible.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,11 @@ def make_controls():
)

page_content = dcc.Loading(
id='global-loading',
type='default',
fullscreen=True,
overlay_style={"visibility": "visible", "filter": "opacity(0.5)"},
style={"background-color": "transparent"},
children=html.Div(dash.page_container, style={
"margin-left": "5rem",
"margin-right": "2rem",
Expand All @@ -221,6 +224,16 @@ def make_controls():
)


@app.callback(
Output('global-loading', 'display'),
Input('interval-load-more', 'disabled'),
)
def hide_spinner_while_loading_batch(interval_disabled):
if interval_disabled:
return 'auto'
return 'hide'


def make_home_page(): return [
sidebar,
html.Div([make_controls(), page_content])
Expand Down
Loading

0 comments on commit 5e1b235

Please sign in to comment.