windmill-components 1.406.3 → 1.406.5

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.
@@ -1,5 +1,4 @@
1
- <script>import { base } from '$app/paths';
2
- import AppConnectInner from './AppConnectInner.svelte';
1
+ <script>import AppConnectInner from './AppConnectInner.svelte';
3
2
  import DarkModeObserver from './DarkModeObserver.svelte';
4
3
  import { Button } from './common';
5
4
  import { workspaceStore } from '../stores';
@@ -9,7 +8,6 @@ export let workspace;
9
8
  export let express = false;
10
9
  let step = 1;
11
10
  let disabled = false;
12
- let isGoogleSignin = false;
13
11
  let manual = true;
14
12
  let appConnect = undefined;
15
13
  let darkMode = false;
@@ -32,32 +30,21 @@ onMount(async () => {
32
30
  <Button variant="border" on:click={appConnect?.back}>Back</Button>
33
31
  {/if}
34
32
 
35
- {#if isGoogleSignin}
36
- <button {disabled} on:click={appConnect?.next}>
37
- <img
38
- class="h-10 w-auto object-contain"
39
- src={darkMode ? base + '/google_signin_dark.png' : base + '/google_signin_light.png'}
40
- alt="Google sign-in"
41
- />
42
- </button>
43
- {:else}
44
- <Button {disabled} on:click={appConnect?.next}>
45
- {#if step == 2 && !manual}
46
- Connect
47
- {:else if step == 1}
48
- Next
49
- {:else}
50
- Save
51
- {/if}
52
- </Button>
53
- {/if}
33
+ <Button {disabled} on:click={appConnect?.next}>
34
+ {#if step == 2 && !manual}
35
+ Connect
36
+ {:else if step == 1}
37
+ Next
38
+ {:else}
39
+ Save
40
+ {/if}
41
+ </Button>
54
42
  </div>
55
43
  </div>
56
44
  <AppConnectInner
57
45
  bind:this={appConnect}
58
46
  bind:step
59
47
  bind:resourceType
60
- bind:isGoogleSignin
61
48
  bind:disabled
62
49
  bind:manual
63
50
  on:error
@@ -19,6 +19,7 @@ const dispatch = createEventDispatcher();
19
19
  title="Deployment History"
20
20
  >
21
21
  <FlowHistoryInner
22
+ allowFork
22
23
  on:historyRestore={() => {
23
24
  drawer.closeDrawer()
24
25
  dispatch('historyRestore')
@@ -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
- <div class="flex">
167
- <Button
168
- size="sm"
169
- color="dark"
170
- on:click={() =>
171
- window.open(
172
- `/flows/add?template_id=${selectedVersion?.id}&template=${path}`,
173
- '_blank'
174
- )}
175
- >
176
- Restore as fork
177
- </Button>
178
- </div>
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
@@ -2,6 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  path: string;
5
+ allowFork?: boolean | undefined;
5
6
  };
6
7
  events: {
7
8
  keydown: KeyboardEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.406.3",
3
+ "version": "1.406.5",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",