mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
add runs page links to history section
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
import { Pane, Splitpanes } from 'svelte-splitpanes'
|
||||
import Section from '$lib/components/Section.svelte'
|
||||
import SaveInputsButton from '$lib/components/SaveInputsButton.svelte'
|
||||
import { Button } from './common'
|
||||
import { ExternalLink } from 'lucide-svelte'
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
export let scriptHash: string | null = null
|
||||
@@ -89,6 +91,19 @@
|
||||
|
||||
<Pane class="px-4 py-4 h-full">
|
||||
<Section label="History" wrapperClass="h-full" small={true}>
|
||||
<svelte:fragment slot="action">
|
||||
<Button
|
||||
size="xs2"
|
||||
color="light"
|
||||
btnClasses="!text-tertiary"
|
||||
endIcon={{ icon: ExternalLink }}
|
||||
on:click={() => {
|
||||
window.open(`/runs/${runnableId}`, '_blank')
|
||||
}}
|
||||
>
|
||||
All runs
|
||||
</Button>
|
||||
</svelte:fragment>
|
||||
<HistoricInputs
|
||||
bind:this={historicInputs}
|
||||
{runnableId}
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
}
|
||||
|
||||
buttons.push({
|
||||
label: `View runs`,
|
||||
label: `Runs`,
|
||||
buttonProps: {
|
||||
href: `${base}/runs/${flow.path}`,
|
||||
size: 'xs',
|
||||
|
||||
@@ -288,7 +288,7 @@
|
||||
}
|
||||
|
||||
buttons.push({
|
||||
label: `View runs`,
|
||||
label: `Runs`,
|
||||
buttonProps: {
|
||||
href: `${base}/runs/${script.path}`,
|
||||
size: 'xs',
|
||||
|
||||
Reference in New Issue
Block a user