diff --git a/src/lib/components/event/event-history-timeline.svelte b/src/lib/components/event/event-history-timeline.svelte index d04a8f37e..e3f940446 100644 --- a/src/lib/components/event/event-history-timeline.svelte +++ b/src/lib/components/event/event-history-timeline.svelte @@ -4,6 +4,7 @@ import Accordion from '$lib/holocene/accordion.svelte'; import Icon from '$lib/holocene/icon/icon.svelte'; + import Loading from '$lib/holocene/loading.svelte'; import ToggleButton from '$lib/holocene/toggle-button/toggle-button.svelte'; import ToggleButtons from '$lib/holocene/toggle-button/toggle-buttons.svelte'; import { translate } from '$lib/i18n/translate'; @@ -197,12 +198,17 @@ $workflowRun.workflow && history.length && visualizationRef; + + const drawTimeline = () => { + if (timeline) { + timeline.destroy(); + } + buildTimeline(category); + }; + $: { if (readyToDraw) { - if (timeline) { - timeline.destroy(); - } - buildTimeline(category); + drawTimeline(); } } @@ -221,20 +227,24 @@ timeline.zoomIn(1)}>+ timeline?.zoomIn(1)}>+ timeline.zoomOut(1)}>- timeline?.zoomOut(1)}>- timeline.focus('workflow')}>Fit timeline?.focus('workflow')}>Fit -
+
+ {#if !timeline} + + {/if} +
diff --git a/src/lib/components/event/event-summary.svelte b/src/lib/components/event/event-summary.svelte index 96fc1b0fd..d066b325b 100644 --- a/src/lib/components/event/event-summary.svelte +++ b/src/lib/components/event/event-summary.svelte @@ -1,21 +1,13 @@ - +