This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 53d8b706575 Grey out trigger button on API 403 (#60648) (#60777)
53d8b706575 is described below
commit 53d8b706575ecbf6df6ed58d86db0fb081b916e0
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Mon Jan 19 15:22:25 2026 +0100
Grey out trigger button on API 403 (#60648) (#60777)
(cherry picked from commit e1c6d265eeb084e12cf9df7883d2467ff9d0f997)
---
.../airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git
a/airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx
b/airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx
index 8c92730714d..61b109e57a1 100644
--- a/airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx
+++ b/airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx
@@ -31,7 +31,7 @@ import { DEFAULT_DATETIME_FORMAT } from
"src/utils/datetimeUtils";
import ConfigForm from "../ConfigForm";
import { DateTimeInput } from "../DateTimeInput";
-import { ErrorAlert } from "../ErrorAlert";
+import { ErrorAlert, type ExpandedApiError } from "../ErrorAlert";
import { Checkbox } from "../ui/Checkbox";
import EditableMarkdown from "./EditableMarkdown";
@@ -167,7 +167,13 @@ const TriggerDAGForm = ({ dagDisplayName, dagId, isPaused,
onClose, open }: Trig
<Spacer />
<Button
colorPalette="brand"
- disabled={Boolean(errors.conf) || Boolean(errors.date) ||
formError || isPending}
+ disabled={
+ Boolean(errors.conf) ||
+ Boolean(errors.date) ||
+ formError ||
+ isPending ||
+ (Boolean(errorTrigger) && (errorTrigger as
ExpandedApiError).status === 403)
+ }
onClick={() => void handleSubmit(onSubmit)()}
>
<FiPlay /> {translate("components:triggerDag.button")}