diff --git a/frontend/src/lib/components/apps/components/DisplayComponent.svelte b/frontend/src/lib/components/apps/components/DisplayComponent.svelte index 57c2e0412e..9331c3e2a8 100644 --- a/frontend/src/lib/components/apps/components/DisplayComponent.svelte +++ b/frontend/src/lib/components/apps/components/DisplayComponent.svelte @@ -1,10 +1,10 @@ + diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/DynamicInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/DynamicInputEditor.svelte index e315ebff2d..f0a5a3d03d 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/DynamicInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/DynamicInputEditor.svelte @@ -1,16 +1,19 @@ -
- {#each Object.keys(inputSpecs) as inputSpecKey} - -
{ - openedProp = inputSpecKey - }} - > - {inputSpecKey} -
- {#if inputSpecKey === openedProp} -
- sanitizeInputSpec(x.detail, inputSpecKey)} - > - - Static - - - Dynamic - - - User - - - +
+ {#each Object.keys(inputSpecs) as inputSpecKey, index (index)} + {@const input = inputSpecs[inputSpecKey]} + +
+
{ + if (openedProp === inputSpecKey) { + openedProp = undefined + } else { + openedProp = inputSpecKey + } + }} + > + {inputSpecKey} + {#if input.fieldType} + + {capitalize(fieldTypeToTsType(input.fieldType))} + + {/if}
- {/if} + {#if inputSpecKey === openedProp} +
+ sanitizeInputSpec(detail, inputSpecKey)} + > + + Static + + + Dynamic + + {#if userInputEnabled} + + User + + {/if} + + +
+ {/if} +
{/each}
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/StaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/StaticInputEditor.svelte index 7e111eee08..58419d6606 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/StaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/StaticInputEditor.svelte @@ -1,30 +1,32 @@ -{#if canHide} - -{/if} +{#if input.type === 'static'} + {#if canHide} + + {/if} -{#if input.fieldType === 'number'} - -{:else if input.fieldType === 'textarea'} -