windmill-components 1.430.2 → 1.430.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/Login.svelte +10 -1
- package/package/components/UserSettings.svelte +3 -3
- package/package/components/custom_ui.d.ts +2 -0
- package/package/components/details/DetailPageLayout.svelte +3 -1
- package/package/components/flows/content/FlowModuleHeader.svelte +5 -2
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { Button, Skeleton } from './common';
|
|
|
13
13
|
import { sendUserToast } from '../toast';
|
|
14
14
|
import { isCloudHosted } from '../cloud';
|
|
15
15
|
import { refreshSuperadmin } from '../refreshUser';
|
|
16
|
-
import { createEventDispatcher } from 'svelte';
|
|
16
|
+
import { createEventDispatcher, onMount } from 'svelte';
|
|
17
17
|
export let rd = undefined;
|
|
18
18
|
export let email = undefined;
|
|
19
19
|
export let password = undefined;
|
|
@@ -150,6 +150,14 @@ function handleKeyUp(event) {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
const dispatch = createEventDispatcher();
|
|
153
|
+
onMount(() => {
|
|
154
|
+
try {
|
|
155
|
+
localStorage.removeItem('closeUponLogin');
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
console.error('Could not remove closeUponLogin from local storage', e);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
153
161
|
function popupListener(event) {
|
|
154
162
|
let data = event.data;
|
|
155
163
|
if (event.origin !== window.location.origin) {
|
|
@@ -179,6 +187,7 @@ function storeRedirect(provider) {
|
|
|
179
187
|
window.open(url, '_blank', 'popup');
|
|
180
188
|
}
|
|
181
189
|
else {
|
|
190
|
+
localStorage.setItem('closeUponLogin', 'false');
|
|
182
191
|
window.location.href = url;
|
|
183
192
|
}
|
|
184
193
|
}
|
|
@@ -5,7 +5,6 @@ import TableCustom from './TableCustom.svelte';
|
|
|
5
5
|
import { Button } from './common';
|
|
6
6
|
import Drawer from './common/drawer/Drawer.svelte';
|
|
7
7
|
import DrawerContent from './common/drawer/DrawerContent.svelte';
|
|
8
|
-
import { page } from '$app/stores';
|
|
9
8
|
import { goto as gotoUrl } from '$app/navigation';
|
|
10
9
|
import { sendUserToast } from '../toast';
|
|
11
10
|
import Tooltip from './Tooltip.svelte';
|
|
@@ -36,10 +35,11 @@ export function closeDrawer() {
|
|
|
36
35
|
removeHash();
|
|
37
36
|
}
|
|
38
37
|
function removeHash() {
|
|
39
|
-
|
|
38
|
+
let href = window.location.href;
|
|
39
|
+
const index = href.lastIndexOf('#');
|
|
40
40
|
if (index === -1)
|
|
41
41
|
return;
|
|
42
|
-
const hashRemoved =
|
|
42
|
+
const hashRemoved = href.slice(0, index);
|
|
43
43
|
gotoUrl(hashRemoved);
|
|
44
44
|
}
|
|
45
45
|
async function setPassword() {
|
|
@@ -33,6 +33,8 @@ export type FlowBuilderWhitelabelCustomUi = {
|
|
|
33
33
|
stepAdvancedSettings?: boolean;
|
|
34
34
|
languages?: (SupportedLanguage | 'docker' | 'bunnative')[];
|
|
35
35
|
scriptFork?: boolean;
|
|
36
|
+
scriptEdit?: boolean;
|
|
37
|
+
tagEdit?: boolean;
|
|
36
38
|
editorBar?: EditorBarUi;
|
|
37
39
|
downloadLogs?: boolean;
|
|
38
40
|
};
|
|
@@ -89,7 +89,8 @@ $: moduleRetry = module.retry?.constant || module.retry?.exponential;
|
|
|
89
89
|
{/if}
|
|
90
90
|
{#if module.value.type === 'script'}
|
|
91
91
|
<div class="w-2" />
|
|
92
|
-
|
|
92
|
+
|
|
93
|
+
{#if !module.value.path.startsWith('hub/') && customUi?.scriptEdit != false}
|
|
93
94
|
<Button
|
|
94
95
|
size="xs"
|
|
95
96
|
color="light"
|
|
@@ -109,7 +110,9 @@ $: moduleRetry = module.retry?.constant || module.retry?.exponential;
|
|
|
109
110
|
Edit {#if module.value.hash != undefined} (locked hash){/if}
|
|
110
111
|
</Button>
|
|
111
112
|
{/if}
|
|
112
|
-
|
|
113
|
+
{#if customUi?.tagEdit != false}
|
|
114
|
+
<FlowModuleWorkerTagSelect nullTag={tag} bind:tag={module.value.tag_override} />
|
|
115
|
+
{/if}
|
|
113
116
|
{#if customUi?.scriptFork != false}
|
|
114
117
|
<Button
|
|
115
118
|
size="xs"
|