fix: improve flow status viewer to display the step details on third tab

This commit is contained in:
Ruben Fiszel
2024-06-04 15:07:08 +02:00
parent 0108ba2603
commit f0da67f3b6
13 changed files with 89 additions and 65 deletions
@@ -10,6 +10,7 @@
let code: string
let language: SupportedLanguage
let lock: string | undefined = undefined
let notFound = false
async function loadCode(path: string, hash: string | undefined) {
@@ -20,6 +21,7 @@
: await getScriptByPath(path!)
code = script.content
language = script.language
lock = script.lock
} catch (e) {
notFound = true
console.error(e)
@@ -35,4 +37,9 @@
{:else}
<HighlightCode {language} {code} />
{/if}
{#if lock}
<h3 class="mb-2 mt-6">Lock</h3>
<pre class="bg-surface-secondary text-xs p-2 overflow-auto w-full">{lock}</pre>
{/if}
</div>