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,26 +135,28 @@
</svg>Persistent Volumes</a </svg>Persistent Volumes</a
> >
</li> </li>
<li {#if !application.simpleDockerfile}
class="rounded" <li
class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`} class="rounded"
> class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`}
<a href={`/applications/${$page.params.id}/features`} class="no-underline w-full"
><svg
xmlns="http://www.w3.org/2000/svg"
class="w-6 h-6"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3" />
</svg>Features</a
> >
</li> <a href={`/applications/${$page.params.id}/features`} class="no-underline w-full"
><svg
xmlns="http://www.w3.org/2000/svg"
class="w-6 h-6"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3" />
</svg>Features</a
>
</li>
{/if}
<li class="menu-title"> <li class="menu-title">
<span>Logs</span> <span>Logs</span>