mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 08:07:03 +00:00
add customUi props for History and Save to workspace editor bar buttons (#8336)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7fb729cc84
commit
f3e9a29c13
@@ -1096,7 +1096,7 @@ JsonNode ${windmillPathToCamelCaseName(path)} = JsonNode.Parse(await client.GetS
|
||||
|
||||
<div class="flex flex-row items-center gap-2 whitespace-nowrap">
|
||||
{@render right?.()}
|
||||
{#if scriptPath && !noHistory}
|
||||
{#if scriptPath && !noHistory && customUi?.history != false}
|
||||
<Button
|
||||
unifiedSize="sm"
|
||||
variant="subtle"
|
||||
@@ -1120,7 +1120,7 @@ JsonNode ${windmillPathToCamelCaseName(path)} = JsonNode.Parse(await client.GetS
|
||||
Library
|
||||
</Button>
|
||||
{/if}
|
||||
{#if saveToWorkspace}
|
||||
{#if saveToWorkspace && customUi?.saveToWorkspace != false}
|
||||
<Button
|
||||
unifiedSize="sm"
|
||||
variant="subtle"
|
||||
|
||||
@@ -81,6 +81,8 @@ export type EditorBarUi = {
|
||||
ducklake?: boolean
|
||||
dataTable?: boolean
|
||||
debug?: boolean
|
||||
history?: boolean
|
||||
saveToWorkspace?: boolean
|
||||
}
|
||||
|
||||
export type EditableSchemaFormUi = {
|
||||
|
||||
Reference in New Issue
Block a user