1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00
This commit is contained in:
Martin McKeaveney 2021-05-23 15:52:21 +01:00
parent b8c18d3d91
commit 495a255987
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,