fix: bots without exposed ports

This commit is contained in:
Andras Bacsai 2022-08-18 19:27:38 +00:00
parent 51e27146f3
commit 8dd80589d6
3 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ export const setLocation = (resource: any, settings?: any) => {
return location.set(resource.fqdn)
} else {
location.set(null);
disabledButton.set(true);
disabledButton.set(false);
}
}

View File

@ -178,9 +178,10 @@
<polyline points="15 4 20 4 20 9" />
</svg></a
>
<div class="border border-coolgray-500 h-8" />
{/if}
<div class="border border-coolgray-500 h-8" />
{#if $status.application.isExited}
<a
href={!$disabledButton ? `/applications/${id}/logs` : null}

View File

@ -494,7 +494,7 @@
bind:setting={isBot}
on:click={() => changeSettings('isBot')}
title="Is your application a bot?"
description="You can deploy applications without domains. <br>They will listen on <span class='text-green-500 font-bold'>IP:EXPOSEDPORT</span> instead.<br></Setting><br>Useful to host <span class='text-green-500 font-bold'>Twitch bots.</span>"
description="You can deploy applications without domains. <br>You can also make them to listen on <span class='text-green-500 font-bold'>IP:EXPOSEDPORT</span> as well.<br></Setting><br>Useful to host <span class='text-green-500 font-bold'>Twitch bots, regular jobs, or anything that does not require an incoming connection.</span>"
disabled={$status.application.isRunning}
/>
</div>
@ -644,7 +644,6 @@
name="exposePort"
id="exposePort"
bind:value={application.exposePort}
required={isBot}
placeholder="12345"
/>
<Explainer