Merge pull request #1289 from appwrite/fix-hide-delete-deployment

fix: hide delete deployment when buildin or processing
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2024-08-13 17:25:37 +02:00
commit 964562e5e9
1 file changed
+11 -9
@@ -168,15 +168,17 @@
Cancel
</DropListItem>
{/if}
<DropListItem
icon="trash"
on:click={() => {
selectedDeployment = deployment;
showDropdown = [];
showDelete = true;
}}>
Delete
</DropListItem>
{#if deployment.status !== 'building' && deployment.status !== 'processing'}
<DropListItem
icon="trash"
on:click={() => {
selectedDeployment = deployment;
showDropdown = [];
showDelete = true;
}}>
Delete
</DropListItem>
{/if}
</svelte:fragment>
</DropList>
</TableCell>