Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderlindenma committed Nov 8, 2024
1 parent 1597255 commit e85277d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/callbacks/data_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def login_callback(n_clicks, username, password, user_headers):
This function is triggered when the login button is clicked. It verifies the provided username and password,
attempts to authenticate the user via the API, and updates the user credentials and headers.
If authentication fails or credentials are missing, it provides appropriate feedback.
After login succeeds and while data required to boot the dashboard is being fetched from the API,
the login form is hidden and a spinner is displayed.
Returns:
dash.dependencies.Output: Updated user credentials and headers, and form feedback.
dash.dependencies.Output: Updated user credentials and headers, and form feedback + styles to hide/show login and loading spinners.
"""
input_style_unchanged = {"width": "250px"}
connection_button_style_unchanged = {}
Expand Down

0 comments on commit e85277d

Please sign in to comment.