mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 21:05:21 +02:00
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:
1 parent
d7ec634890
commit
2ba5e6ad4f
1 file changed
+6
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user