2021-04-08 16:57:24 +02:00
|
|
|
<script>
|
2021-04-16 12:05:31 +02:00
|
|
|
import Checkbox from "../Form/Checkbox.svelte"
|
|
|
|
import ActionButton from "../ActionButton/ActionButton.svelte"
|
2021-04-08 16:57:24 +02:00
|
|
|
|
|
|
|
export let selected
|
|
|
|
export let onEdit
|
|
|
|
export let allowSelectRows = false
|
|
|
|
export let allowEditRows = false
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if allowSelectRows}
|
2021-04-16 12:05:31 +02:00
|
|
|
<Checkbox value={selected} />
|
2021-04-08 16:57:24 +02:00
|
|
|
{/if}
|
|
|
|
{#if allowEditRows}
|
2021-04-27 16:18:52 +02:00
|
|
|
<ActionButton size="S" on:click={onEdit}>Edit</ActionButton>
|
2021-04-08 16:57:24 +02:00
|
|
|
{/if}
|