fix(ui): mark webhook kind as COMING SOON in trigger add dialog

Match the production behaviour that the old inline add form had:
webhook is visible in the kind dropdown but disabled with a "— COMING
SOON" suffix when creating a new trigger. The edit dialog still lets
existing webhook triggers be edited (kind picker is disabled on edit
regardless).
This commit is contained in:
Aron Prins 2026-04-13 12:00:04 +02:00
parent d7ec634890
commit 2ba5e6ad4f
1 changed files with 6 additions and 1 deletions

View File

@ -173,8 +173,13 @@ export function TriggerDialog({
</SelectTrigger>
<SelectContent>
{triggerKinds.map((kind) => (
<SelectItem key={kind} value={kind}>
<SelectItem
key={kind}
value={kind}
disabled={!isEdit && kind === "webhook"}
>
{kind}
{!isEdit && kind === "webhook" ? " — COMING SOON" : ""}
</SelectItem>
))}
</SelectContent>