remove delete button when flow is in use (#38861) (#39396)

partially fixes: #38145

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
(cherry picked from commit 21c0be3c6c874b230dc65f54cbdf643f33b36bb9)
This commit is contained in:
Erik Jan de Wit 2025-05-01 19:26:42 +02:00 committed by GitHub
parent 821ac1f9a0
commit 8795cdefca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,6 +296,10 @@ export default function FlowDetails() {
>
{t("editInfo")}
</DropdownItem>,
]
: []),
...(!builtIn && !usedBy
? [
<DropdownItem
data-testid="delete-flow"
key="delete"