mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: missing changes from be
This commit is contained in:
@@ -19,7 +19,7 @@ export const load: LayoutLoad = async ({ params, depends }) => {
|
||||
Query.equal('type', RuleType.DEPLOYMENT),
|
||||
Query.equal('deploymentResourceType', DeploymentResourceType.FUNCTION),
|
||||
Query.equal('deploymentResourceId', params.function),
|
||||
Query.equal('deploymentId', func.deployment),
|
||||
Query.equal('deploymentId', func.deploymentId),
|
||||
Query.limit(1)
|
||||
]);
|
||||
|
||||
|
||||
+1
-1
@@ -96,7 +96,7 @@
|
||||
<Button secondary href={getDownload(data.deployment.$id)}>Download</Button>
|
||||
{/if}
|
||||
|
||||
{#if data.func.deployment !== data.deployment.$id && data.deployment.status === 'ready'}
|
||||
{#if data.func.deploymentId !== data.deployment.$id && data.deployment.status === 'ready'}
|
||||
<Button
|
||||
disabled={data.activeDeployment}
|
||||
on:click={() => {
|
||||
|
||||
+1
-1
@@ -14,6 +14,6 @@ export const load: PageLoad = async ({ params, depends, parent }) => {
|
||||
return {
|
||||
func,
|
||||
deployment,
|
||||
activeDeployment: func.deployment === params.deployment
|
||||
activeDeployment: func.deploymentId === params.deployment
|
||||
};
|
||||
};
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
}}>
|
||||
Redeploy
|
||||
</ActionMenu.Item.Button>
|
||||
{#if deployment.status === 'ready' && deployment.$id !== $func.deployment}
|
||||
{#if deployment.status === 'ready' && deployment.$id !== $func.deploymentId}
|
||||
<ActionMenu.Item.Button
|
||||
trailingIcon={IconLightningBolt}
|
||||
on:click={(e) => {
|
||||
|
||||
Reference in New Issue
Block a user