fix: initial deploy status

This commit is contained in:
Andras Bacsai
2022-09-29 13:23:38 +02:00
parent 90bb580e50
commit 5238c83f3f

View File

@@ -97,6 +97,11 @@
async function handleDeploySubmit(forceRebuild = false) { async function handleDeploySubmit(forceRebuild = false) {
if (!$isDeploymentEnabled) return; if (!$isDeploymentEnabled) return;
if (!statusInterval) {
statusInterval = setInterval(async () => {
await getStatus();
}, 2000);
}
try { try {
const { buildId } = await post(`/applications/${id}/deploy`, { const { buildId } = await post(`/applications/${id}/deploy`, {
...application, ...application,
@@ -235,7 +240,6 @@
</button> </button>
{/if} {/if}
</div> </div>
{/if} {/if}
</nav> </nav>
<div <div