mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 16:09:39 +00:00
19 lines
632 B
Svelte
19 lines
632 B
Svelte
<script lang="ts">
|
|
import type { ConnectedAppInput, RowAppInput, StaticAppInput, UserAppInput } from '../inputType'
|
|
import type { AppComponent } from './Component.svelte'
|
|
import InputsSpecsEditor from './settingsPanel/InputsSpecsEditor.svelte'
|
|
|
|
export let fields: Record<string, StaticAppInput | ConnectedAppInput | RowAppInput | UserAppInput>
|
|
export let component: AppComponent
|
|
export let resourceOnly: boolean = false
|
|
|
|
$: fields = resourceOnly ? fields : fields
|
|
</script>
|
|
|
|
<InputsSpecsEditor
|
|
id={component.id}
|
|
shouldCapitalize={false}
|
|
bind:inputSpecs={fields}
|
|
userInputEnabled={component.type !== 'buttoncomponent'}
|
|
/>
|