diff --git a/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte b/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte index eeccd7988..84027ae6f 100644 --- a/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte +++ b/apps/ui/src/routes/applications/[id]/logs/_BuildLog.svelte @@ -7,6 +7,7 @@ import Tooltip from '$lib/components/Tooltip.svelte'; import { day } from '$lib/dayjs'; import { selectedBuildId } from '$lib/store'; + import { dev } from '$app/env'; let logs: any = []; let currentStatus: any; @@ -104,86 +105,86 @@ }); -
- + {followingLogs ? 'Following Logs...' : 'Follow Logs'} + - - {#if currentStatus === 'running'} + + + + + {cancelInprogress ? 'Cancelling...' : 'Cancel Build'} + + {#if currentStatus === 'running'}
- {#if currentStatus === 'queued'} -
- {$t('application.build.queued_waiting_exec')} -
- {:else if logs.length > 0} -
- {#each logs as log} - {#if fromDb} -
{log.line + '\n'}
- {:else} -
[{day.unix(log.time).format('HH:mm:ss.SSS')}] {log.line + '\n'}
- {/if} - {/each} -
- {:else} -
- No logs found yet. -
{/if} + +{#if currentStatus === 'queued'} +
+ {$t('application.build.queued_waiting_exec')} +
+{:else if logs.length > 0} +
+ {#each logs as log} + {#if fromDb} +
{log.line + '\n'}
+ {:else} +
[{day.unix(log.time).format('HH:mm:ss.SSS')}] {log.line + '\n'}
+ {/if} + {/each} +
+{:else} +
+ {dev ? 'In development, logs are shown in the console.' : 'No logs found yet.'} +
+{/if}