fix: turn off autodeploy for simpledockerfiles

This commit is contained in:
Andras Bacsai
2022-12-01 16:50:54 +01:00
parent 943a05edcc
commit ad4b974274
2 changed files with 22 additions and 20 deletions

View File

@@ -859,7 +859,7 @@ export async function saveApplicationSource(request: FastifyRequest<SaveApplicat
if (simpleDockerfile) { if (simpleDockerfile) {
await prisma.application.update({ await prisma.application.update({
where: { id }, where: { id },
data: { simpleDockerfile } data: { simpleDockerfile, settings: { update: { autodeploy: false } } }
}); });
} }

View File

@@ -135,6 +135,7 @@
</svg>Persistent Volumes</a </svg>Persistent Volumes</a
> >
</li> </li>
{#if !application.simpleDockerfile}
<li <li
class="rounded" class="rounded"
class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`} class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`}
@@ -155,6 +156,7 @@
</svg>Features</a </svg>Features</a
> >
</li> </li>
{/if}
<li class="menu-title"> <li class="menu-title">
<span>Logs</span> <span>Logs</span>