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:
parent
d7ec634890
commit
2ba5e6ad4f
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue