mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: Hide redeploy button when sourceSize is 0
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@
|
||||
</Button>
|
||||
<svelte:fragment slot="menu" let:toggle>
|
||||
<ActionMenu.Root>
|
||||
{#if $canWriteFunctions}
|
||||
{#if $canWriteFunctions && activeDeployment.sourceSize !== 0}
|
||||
<ActionMenu.Item.Button
|
||||
trailingIcon={IconRefresh}
|
||||
on:click={() => {
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@
|
||||
</Button>
|
||||
<svelte:fragment slot="menu" let:toggle>
|
||||
<ActionMenu.Root>
|
||||
{#if $canWriteFunctions}
|
||||
{#if $canWriteFunctions && data.deployment.sourceSize !== 0}
|
||||
<ActionMenu.Item.Button
|
||||
trailingIcon={IconRefresh}
|
||||
on:click={() => {
|
||||
|
||||
+3
-1
@@ -56,7 +56,9 @@
|
||||
</Button>
|
||||
{/if}
|
||||
|
||||
<Button secondary on:click={() => (showRedeploy = true)}>Redeploy</Button>
|
||||
{#if deployment?.sourceSize !== 0}
|
||||
<Button secondary on:click={() => (showRedeploy = true)}>Redeploy</Button>
|
||||
{/if}
|
||||
<DeploymentActionMenu
|
||||
inCard
|
||||
{deployment}
|
||||
|
||||
Reference in New Issue
Block a user