windmill-components 1.406.2 → 1.406.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/components/flows/FlowHistory.svelte +1 -0
- package/package/components/flows/FlowHistoryInner.svelte +17 -13
- package/package/components/flows/FlowHistoryInner.svelte.d.ts +1 -0
- package/package/components/icons/WindmillIcon.svelte +1 -1
- package/package/components/icons/store.d.ts +3 -3
- package/package/components/icons/store.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import Button from '../common/button/Button.svelte';
|
|
|
7
7
|
import { ArrowRight, Loader2, Pencil, X } from 'lucide-svelte';
|
|
8
8
|
import { createEventDispatcher } from 'svelte';
|
|
9
9
|
export let path;
|
|
10
|
+
export let allowFork = false;
|
|
10
11
|
let loading = false;
|
|
11
12
|
let versions = [];
|
|
12
13
|
let selectedVersion = undefined;
|
|
@@ -163,19 +164,22 @@ $: selectedVersion !== undefined && loadFlow(selectedVersion.id);
|
|
|
163
164
|
{/if}
|
|
164
165
|
</span>
|
|
165
166
|
<div class="flex p-1 gap-2">
|
|
166
|
-
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
167
|
+
{#if allowFork}
|
|
168
|
+
<div class="flex">
|
|
169
|
+
<Button
|
|
170
|
+
size="sm"
|
|
171
|
+
color="dark"
|
|
172
|
+
on:click={() =>
|
|
173
|
+
window.open(
|
|
174
|
+
`/flows/add?template_id=${selectedVersion?.id}&template=${path}`,
|
|
175
|
+
'_blank'
|
|
176
|
+
)}
|
|
177
|
+
>
|
|
178
|
+
Restore as fork
|
|
179
|
+
</Button>
|
|
180
|
+
</div>
|
|
181
|
+
{/if}
|
|
182
|
+
|
|
179
183
|
<div class="flex">
|
|
180
184
|
<Button size="sm" color="dark" on:click={() => restoreVersion(selected)}
|
|
181
185
|
>Redeploy with that version
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare let customIcon: {
|
|
2
|
-
normal
|
|
3
|
-
white
|
|
4
|
-
}
|
|
2
|
+
normal?: string;
|
|
3
|
+
white?: string;
|
|
4
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export let customIcon =
|
|
1
|
+
export let customIcon = {};
|