mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 12:33:06 +00:00
fix: application state in UI
This commit is contained in:
@@ -86,7 +86,7 @@
|
|||||||
async function handleDeploySubmit() {
|
async function handleDeploySubmit() {
|
||||||
try {
|
try {
|
||||||
const { buildId } = await post(`/applications/${id}/deploy.json`, { ...application });
|
const { buildId } = await post(`/applications/${id}/deploy.json`, { ...application });
|
||||||
return window.location.assign(`/applications/${id}/logs/build?buildId=${buildId}`);
|
return await goto(`/applications/${id}/logs/build?buildId=${buildId}`);
|
||||||
} catch ({ error }) {
|
} catch ({ error }) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
}
|
}
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
try {
|
try {
|
||||||
loading = true;
|
loading = true;
|
||||||
await post(`/applications/${id}/stop.json`, {});
|
await post(`/applications/${id}/stop.json`, {});
|
||||||
return window.location.reload();
|
isRunning = false;
|
||||||
} catch ({ error }) {
|
} catch ({ error }) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -51,9 +51,10 @@
|
|||||||
build.took = data.builds[0].took;
|
build.took = data.builds[0].took;
|
||||||
build.since = data.builds[0].since;
|
build.since = data.builds[0].since;
|
||||||
}
|
}
|
||||||
|
|
||||||
return build;
|
return build;
|
||||||
});
|
});
|
||||||
return;
|
return window.location.reload();
|
||||||
} catch ({ error }) {
|
} catch ({ error }) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user