diff --git a/frontend/src/lib/components/EditorBar.svelte b/frontend/src/lib/components/EditorBar.svelte index c1a6da23a5..43c8f74a17 100644 --- a/frontend/src/lib/components/EditorBar.svelte +++ b/frontend/src/lib/components/EditorBar.svelte @@ -9,6 +9,7 @@ faBook, faCube, faDollarSign, + faHistory, faPlus, faRotate, faRotateLeft @@ -35,6 +36,7 @@ import { Link, Users } from 'lucide-svelte' import { capitalize } from '$lib/utils' import type { Schema, SchemaProperty } from '$lib/common' + import ScriptVersionHistory from './ScriptVersionHistory.svelte' export let lang: 'python3' | 'deno' | 'go' | 'bash' export let editor: Editor | undefined @@ -52,6 +54,7 @@ export let collabMode = false export let collabLive = false export let collabUsers: { name: string }[] = [] + export let scriptPath: string | undefined = undefined let contextualVariablePicker: ItemPicker let variablePicker: ItemPicker @@ -125,8 +128,18 @@ } return rec(schema.properties, true) } + + let historyBrowserDrawerOpen = false +{#if scriptPath} + + (historyBrowserDrawerOpen = false)}> + + + +{/if} + {#if pick_existing == 'hub'} @@ -471,20 +484,36 @@ - {#if SCRIPT_EDITOR_SHOW_EXPLORE_OTHER_SCRIPTS} - - {/if} +
+ {#if scriptPath} + + {/if} + {#if SCRIPT_EDITOR_SHOW_EXPLORE_OTHER_SCRIPTS} + + {/if} +