mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-22 08:03:38 +00:00
fix: improve flow status viewer to display the step details on third tab
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user