Skip to content

Commit a283a54

Browse files
committed
add proper icon for hub scripts in flow items
1 parent 9b9069e commit a283a54

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Open-source developer infrastructure for internal tools. Self-hostable alternati
3737

3838
You can show your support for the project by starring this repo.
3939

40-
Windmill Labs offers commercial licenses, an enterprise edition, local hub mirrors, and support.
41-
[email protected] (founder of Windmill) for more info.
40+
Windmill Labs offers commercial licenses, an enterprise edition, local hub mirrors, and support: contact [email protected].
41+
4242
---
4343

4444
# Windmill

frontend/src/lib/components/flows/content/FlowModuleComponent.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
import FlowModuleSuspend from './FlowModuleSuspend.svelte'
2323
import FlowRetries from './FlowRetries.svelte'
2424
import { getStepPropPicker } from '../previousResults'
25-
import Tooltip from '$lib/components/Tooltip.svelte'
26-
import { Kbd } from '$lib/components/common'
25+
2726
import Button from '$lib/components/common/button/Button.svelte'
2827
import Alert from '$lib/components/common/alert/Alert.svelte'
2928

frontend/src/lib/components/flows/map/MapItem.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
faRepeat
1616
} from '@fortawesome/free-solid-svg-icons'
1717
import Icon from 'svelte-awesome'
18+
import IconedResourceType from '$lib/components/IconedResourceType.svelte'
19+
import IconedPath from '$lib/components/IconedPath.svelte'
1820
1921
export let mod: FlowModule
2022
@@ -112,7 +114,11 @@
112114
{:else if mod.value.type === 'identity'}
113115
<Icon data={faLongArrowDown} scale={0.8} />
114116
{:else if mod.value.type === 'script'}
115-
<Icon data={faBuilding} scale={0.8} />
117+
{#if mod.value.path.startsWith('hub/')}
118+
<IconedPath path={mod.value.path} />
119+
{:else}
120+
<Icon data={faBuilding} scale={0.8} />
121+
{/if}
116122
{/if}
117123
</div>
118124
</FlowModuleSchemaItem>

0 commit comments

Comments
 (0)