mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: Hide redeploy button when sourceSize is 0
This commit is contained in:
1 parent
6fb93f2fc8
commit
174b07711d
3 files changed
+5
-3
No files matched your search
+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