Skip to content

Commit

Permalink
feat: change button type on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 5, 2024
1 parent 418b198 commit 257e89a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aind_qc_portal/panel/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def submit_changes(self, *event):

if response.status_code != 200:
self.submit_error.value = f"Error ({response.status_code}) submitting changes: {response.text}"
self.submit_button.button_type = "danger"
return
else:
self.submit_button.disabled = True
Expand Down

0 comments on commit 257e89a

Please sign in to comment.