mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
fix: expose dropzone ref to publish widget
This commit is contained in:
parent
d36e21c5f1
commit
2281dc6bd0
2 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ const { draft } = $(draftState)
|
||||||
const {
|
const {
|
||||||
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
|
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
|
||||||
uploadAttachments, pickAttachments, setDescription, removeAttachment,
|
uploadAttachments, pickAttachments, setDescription, removeAttachment,
|
||||||
|
dropZoneRef,
|
||||||
} = $(useUploadMediaAttachment($$(draft)))
|
} = $(useUploadMediaAttachment($$(draft)))
|
||||||
|
|
||||||
let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish(
|
let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish(
|
||||||
|
|
|
@ -143,6 +143,7 @@ export const useUploadMediaAttachment = (draftRef: Ref<Draft>) => {
|
||||||
isUploading,
|
isUploading,
|
||||||
isExceedingAttachmentLimit,
|
isExceedingAttachmentLimit,
|
||||||
failedAttachments,
|
failedAttachments,
|
||||||
|
dropZoneRef,
|
||||||
isOverDropZone,
|
isOverDropZone,
|
||||||
|
|
||||||
uploadAttachments,
|
uploadAttachments,
|
||||||
|
|
Loading…
Reference in a new issue