3939import { stringify } from ' qs'
4040import {
4141 computed ,
42+ markRaw ,
4243 unref ,
4344 nextTick ,
4445 ref ,
@@ -280,7 +281,7 @@ const handlePostMessagesCollabora = async (event: MessageEvent) => {
280281 name: resource .name ,
281282 format: message .Values .format
282283 }),
283- customComponent: FileNameModal ,
284+ customComponent: markRaw ( FileNameModal ) ,
284285 customComponentAttrs : () => ({
285286 space ,
286287 resource ,
@@ -298,7 +299,7 @@ const handlePostMessagesCollabora = async (event: MessageEvent) => {
298299
299300 dispatchModal ({
300301 title: $gettext (' Save »%{name}« with new name' , { name: resource .name }),
301- customComponent: FileNameModal ,
302+ customComponent: markRaw ( FileNameModal ) ,
302303 customComponentAttrs : () => ({
303304 space ,
304305 resource ,
@@ -346,7 +347,7 @@ const handlePostMessagesCollabora = async (event: MessageEvent) => {
346347 dispatchModal ({
347348 elementClass: ' file-picker-modal' ,
348349 title: $gettext (' Insert graphic' ),
349- customComponent: FilePickerModal ,
350+ customComponent: markRaw ( FilePickerModal ) ,
350351 hideActions: true ,
351352 customComponentAttrs : () => ({
352353 parentFolderLink: getParentFolderLink (resource ),
@@ -374,7 +375,7 @@ const handlePostMessagesCollabora = async (event: MessageEvent) => {
374375 callback === ' Action_CompareDocuments'
375376 ? $gettext (' Select document to compare' )
376377 : $gettext (' Insert file' ),
377- customComponent: FilePickerModal ,
378+ customComponent: markRaw ( FilePickerModal ) ,
378379 hideActions: true ,
379380 customComponentAttrs : () => ({
380381 parentFolderLink: getParentFolderLink (resource ),
@@ -401,7 +402,7 @@ const handlePostMessagesCollabora = async (event: MessageEvent) => {
401402 dispatchModal ({
402403 elementClass: ' file-picker-modal' ,
403404 title: $gettext (' Pick a file to link' ),
404- customComponent: FilePickerModal ,
405+ customComponent: markRaw ( FilePickerModal ) ,
405406 hideActions: true ,
406407 customComponentAttrs : () => ({
407408 parentFolderLink: getParentFolderLink (resource ),
0 commit comments