From 2281dc6bd08d270999be5d96c5e0f99eca5c60ea Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 10 Jan 2023 22:51:25 +0000 Subject: [PATCH] fix: expose dropzone ref to publish widget --- components/publish/PublishWidget.vue | 1 + composables/masto/publish.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 3bd8c8b3..84f1f52c 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -32,6 +32,7 @@ const { draft } = $(draftState) const { isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone, uploadAttachments, pickAttachments, setDescription, removeAttachment, + dropZoneRef, } = $(useUploadMediaAttachment($$(draft))) let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish( diff --git a/composables/masto/publish.ts b/composables/masto/publish.ts index 3bca26f6..13c15940 100644 --- a/composables/masto/publish.ts +++ b/composables/masto/publish.ts @@ -143,6 +143,7 @@ export const useUploadMediaAttachment = (draftRef: Ref) => { isUploading, isExceedingAttachmentLimit, failedAttachments, + dropZoneRef, isOverDropZone, uploadAttachments,