diff --git a/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte b/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte
index 48fc836b8..51034df07 100644
--- a/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte
+++ b/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte
@@ -6,7 +6,6 @@
import { page } from '$app/stores';
- import Loading from '$lib/components/Loading.svelte';
import { get, post } from '$lib/api';
import { t } from '$lib/translations';
import LoadingLogs from '$lib/components/LoadingLogs.svelte';
@@ -14,7 +13,6 @@
import Tooltip from '$lib/components/Tooltip.svelte';
let logs: any = [];
- let loading = true;
let currentStatus: any;
let streamInterval: any;
let followingBuild: any;
@@ -47,7 +45,6 @@
logs = logs.concat(
responseLogs.map((log: any) => ({ ...log, line: cleanAnsiCodes(log.line) }))
);
- loading = false;
streamInterval = setInterval(async () => {
if (status !== 'running' && status !== 'queued') {
clearInterval(streamInterval);
@@ -64,7 +61,7 @@
logs = logs.concat(
data.logs.map((log: any) => ({ ...log, line: cleanAnsiCodes(log.line) }))
);
- dispatch('updateBuildStatus', { status });
+ dispatch('updateBuildStatus', { status, took: data.took });
} catch (error) {
return errorNotification(error);
}
@@ -97,86 +94,82 @@
});
-{#if loading}
-