This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new e1c6d265eeb Grey out trigger button on API 403 (#60648)
e1c6d265eeb is described below
commit e1c6d265eeb084e12cf9df7883d2467ff9d0f997
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Fri Jan 16 18:39:45 2026 +0100
Grey out trigger button on API 403 (#60648)
---
.../src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx | 9 +++++++--
1 file changed, 7 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 acb5886132d..2b730a1d63a 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 { RadioCardItem, RadioCardRoot } from "../ui/RadioCard";
import TriggerDAGAdvancedOptions from "./TriggerDAGAdvancedOptions";
@@ -258,7 +258,12 @@ const TriggerDAGForm = ({
<Button
colorPalette="brand"
disabled={
- Boolean(errors.conf) || Boolean(errors.date) || formError ||
isPending || dataIntervalInvalid
+ Boolean(errors.conf) ||
+ Boolean(errors.date) ||
+ formError ||
+ isPending ||
+ dataIntervalInvalid ||
+ (Boolean(errorTrigger) && (errorTrigger as
ExpandedApiError).status === 403)
}
onClick={() => void handleSubmit(onSubmit)()}
>