mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
make flow status viewer always open
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
let capturePayload: CapturePayload
|
||||
export let previewMode: 'upTo' | 'whole'
|
||||
export let open: boolean
|
||||
export let is_owner: boolean = false
|
||||
|
||||
export let jobId: string | undefined = undefined
|
||||
export let job: Job | undefined = undefined
|
||||
@@ -158,7 +157,7 @@
|
||||
/>
|
||||
<div class="h-full pt-4 grow">
|
||||
{#if jobId}
|
||||
<FlowStatusViewer bind:is_owner bind:flowState={$flowStateStore} {jobId} bind:job />
|
||||
<FlowStatusViewer bind:flowState={$flowStateStore} {jobId} bind:job />
|
||||
{:else}
|
||||
<div class="italic text-gray-500 h-full grow"> Flow status will be displayed here </div>
|
||||
{/if}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
export let duration = 0.3
|
||||
export let placement = 'right'
|
||||
export let size = '600px'
|
||||
export let alwaysOpen = false
|
||||
|
||||
$: durationMs = duration * 1000
|
||||
|
||||
@@ -73,7 +74,7 @@
|
||||
<aside class="drawer {$$props.class}" class:open class:close={!open && timeout} {style}>
|
||||
<div class="overlay" on:click={handleClickAway} />
|
||||
<div class="panel {placement}" class:size>
|
||||
{#if open || !timeout}
|
||||
{#if open || !timeout || alwaysOpen}
|
||||
<slot />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -65,9 +65,8 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<Drawer bind:open={previewOpen} size="75%">
|
||||
<Drawer bind:open={previewOpen} alwaysOpen size="75%">
|
||||
<FlowPreviewContent
|
||||
bind:is_owner
|
||||
open={previewOpen}
|
||||
bind:previewMode
|
||||
bind:job
|
||||
|
||||
Reference in New Issue
Block a user