add proper icon for hub scripts in flow items
This commit is contained in:
@@ -37,8 +37,8 @@ Open-source developer infrastructure for internal tools. Self-hostable alternati
|
||||
|
||||
You can show your support for the project by starring this repo.
|
||||
|
||||
Windmill Labs offers commercial licenses, an enterprise edition, local hub mirrors, and support.
|
||||
ruben@windmill.dev (founder of Windmill) for more info.
|
||||
Windmill Labs offers commercial licenses, an enterprise edition, local hub mirrors, and support: contact ruben@windmill.dev.
|
||||
|
||||
---
|
||||
|
||||
# Windmill
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
import FlowModuleSuspend from './FlowModuleSuspend.svelte'
|
||||
import FlowRetries from './FlowRetries.svelte'
|
||||
import { getStepPropPicker } from '../previousResults'
|
||||
import Tooltip from '$lib/components/Tooltip.svelte'
|
||||
import { Kbd } from '$lib/components/common'
|
||||
|
||||
import Button from '$lib/components/common/button/Button.svelte'
|
||||
import Alert from '$lib/components/common/alert/Alert.svelte'
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
faRepeat
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
import Icon from 'svelte-awesome'
|
||||
import IconedResourceType from '$lib/components/IconedResourceType.svelte'
|
||||
import IconedPath from '$lib/components/IconedPath.svelte'
|
||||
|
||||
export let mod: FlowModule
|
||||
|
||||
@@ -112,7 +114,11 @@
|
||||
{:else if mod.value.type === 'identity'}
|
||||
<Icon data={faLongArrowDown} scale={0.8} />
|
||||
{:else if mod.value.type === 'script'}
|
||||
<Icon data={faBuilding} scale={0.8} />
|
||||
{#if mod.value.path.startsWith('hub/')}
|
||||
<IconedPath path={mod.value.path} />
|
||||
{:else}
|
||||
<Icon data={faBuilding} scale={0.8} />
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</FlowModuleSchemaItem>
|
||||
|
||||
Reference in New Issue
Block a user