fix: missing changes from be

This commit is contained in:
Arman
2025-03-12 16:06:41 +01:00
parent 28f3df728b
commit 69c829b2b8
4 changed files with 4 additions and 4 deletions
@@ -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)
]);
@@ -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={() => {
@@ -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) => {