Files
windmill/frontend/src/lib/components/apps/editor/TablePanel.svelte
T
Faton RamadaniandRuben Fiszel 6b33b80fc4 App bugfix (#1049)
* adapt static adapter to cloudflare

* fix(frontend): Various bug fix

* fix typecheck

* numerous fixes

* fix all connects

* fix all connects

* more improvements

* more improvements

* everything work?

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2022-12-29 12:47:53 +01:00

21 lines
638 B
Svelte

<script lang="ts">
import { getContext } from 'svelte'
import type { AppEditorContext, TableComponent } from '../types'
import ComponentPanel from './settingsPanel/ComponentPanel.svelte'
export let component: TableComponent
const { selectedComponent } = getContext<AppEditorContext>('AppEditorContext')
</script>
{#each component.actionButtons as actionButton (actionButton.id)}
{#if actionButton.id === $selectedComponent}
<ComponentPanel
rowColumns
bind:component={actionButton}
onDelete={() => {
component.actionButtons = component.actionButtons.filter((c) => c.id !== actionButton.id)
}}
/>
{/if}
{/each}