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
2024-08-13 17:25:37 +02:00
committed by GitHub
@@ -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>