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