mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 04:55:03 +02:00
Board: Add attachment action (#1474)
Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
import { Class, Doc, Ref, Space } from '@anticrm/core'
|
||||
import { getClient } from '@anticrm/presentation'
|
||||
import { CircleButton, IconAdd } from '@anticrm/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import { createAttachments } from '../utils'
|
||||
|
||||
export let loading: number = 0
|
||||
@@ -26,6 +27,7 @@
|
||||
export let space: Ref<Space>
|
||||
|
||||
const client = getClient()
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
async function fileSelected() {
|
||||
const list = inputFile.files
|
||||
@@ -37,6 +39,8 @@
|
||||
} finally {
|
||||
loading--
|
||||
}
|
||||
|
||||
dispatch('attached')
|
||||
}
|
||||
|
||||
function openFile() {
|
||||
|
||||
Reference in New Issue
Block a user