fix: initial deploy status
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user