This commit is contained in:
Martin McKeaveney 2021-05-23 15:52:21 +01:00
parent 35e361717c
commit 4091013376
2 changed files with 0 additions and 9 deletions

View File

@ -1,12 +1,9 @@
<script>
import Tooltip from "../Tooltip/Tooltip.svelte"
import Link from "../Link/Link.svelte"
import { createEventDispatcher } from "svelte"
export let value
const dispatch = createEventDispatcher()
const displayLimit = 5
$: attachments = value?.slice(0, displayLimit) ?? []
$: leftover = (value?.length ?? 0) - attachments.length

View File

@ -65,12 +65,6 @@
)
}
const selectAttachment = ({ url }) => {
$goto(
`/builder/app/${$params.application}/data/table/${tableId}/relationship/${rowId}/${fieldName}`
)
}
const deleteRows = async () => {
await api.post(`/api/${tableId}/rows`, {
rows: selectedRows,