mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 08:04:25 +00:00
24 lines
576 B
Svelte
24 lines
576 B
Svelte
<script lang="ts">
|
|
import { JobService } from '$lib/gen'
|
|
import { workspaceStore } from '$lib/stores'
|
|
import LogViewer from './LogViewer.svelte'
|
|
|
|
interface Props {
|
|
jobId: string
|
|
tagLabel?: string | undefined
|
|
}
|
|
|
|
let { jobId, tagLabel = undefined }: Props = $props()
|
|
|
|
let logs: string | undefined = $state(undefined)
|
|
|
|
async function loadLogs() {
|
|
logs = await JobService.getJobLogs({ workspace: $workspaceStore!, id: jobId })
|
|
}
|
|
$effect(() => {
|
|
jobId && loadLogs()
|
|
})
|
|
</script>
|
|
|
|
<LogViewer content={logs} isLoading={false} tag={undefined} {jobId} {tagLabel} />
|