disable duplicate for webhook triggers automation
Co-authored-by: Moshood Abidemi <olalekanteeblaze@gmail.com>
This commit is contained in:
parent
441a9f65bb
commit
036e355c9b
|
@ -32,7 +32,12 @@
|
|||
<div slot="control" class="icon">
|
||||
<Icon s hoverable name="MoreSmallList" />
|
||||
</div>
|
||||
<MenuItem icon="Duplicate" on:click={duplicateAutomation}>Duplicate</MenuItem>
|
||||
<MenuItem
|
||||
icon="Duplicate"
|
||||
on:click={duplicateAutomation}
|
||||
disabled={automation.definition.trigger.name === "Webhook"}
|
||||
>Duplicate</MenuItem
|
||||
>
|
||||
<MenuItem icon="Edit" on:click={updateAutomationDialog.show}>Edit</MenuItem>
|
||||
<MenuItem icon="Delete" on:click={confirmDeleteDialog.show}>Delete</MenuItem>
|
||||
</ActionMenu>
|
||||
|
|
Loading…
Reference in New Issue