mirror of https://github.com/Budibase/budibase.git
committed by
GitHub
5 changed files with 84 additions and 36 deletions
@ -1,29 +1,6 @@ |
|||
<script> |
|||
import { createEventDispatcher } from "svelte" |
|||
import { DropdownMenu, TextButton as Button, Icon } from "@budibase/bbui" |
|||
import AttachmentList from "../../attachments/AttachmentList.svelte" |
|||
// import Modal from "./Modal.svelte" |
|||
|
|||
const dispatch = createEventDispatcher() |
|||
|
|||
let anchor |
|||
let dropdown |
|||
|
|||
export let files |
|||
</script> |
|||
|
|||
<AttachmentList {files} /> |
|||
<!-- <div bind:this={anchor}> |
|||
<Button text small on:click={dropdown.show}> |
|||
<Icon name="edit" /> |
|||
</Button> |
|||
</div> |
|||
<DropdownMenu bind:this={dropdown} {anchor} align="left"> |
|||
<h5>Edit Attachment(s)</h5> |
|||
<Modal |
|||
{_bb} |
|||
{table} |
|||
onClosed={dropdown.hide} |
|||
on:newRow={() => dispatch('newRow')} /> |
|||
</DropdownMenu> --> |
|||
|
|||
<AttachmentList {files} on:delete /> |
|||
Loading…
Reference in new issue