From 257e89ad3b83511337808bd656cacd1c56498849 Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Tue, 5 Nov 2024 08:50:44 -0800 Subject: [PATCH] feat: change button type on errors --- src/aind_qc_portal/panel/quality_control.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aind_qc_portal/panel/quality_control.py b/src/aind_qc_portal/panel/quality_control.py index 94b7348..7758bae 100644 --- a/src/aind_qc_portal/panel/quality_control.py +++ b/src/aind_qc_portal/panel/quality_control.py @@ -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