Client: Fixed Bug 69303
Error occurred in the Documents Service (errorCode = -7)
This commit is contained in:
parent
b59e0a9969
commit
f9af77e232
@ -68,6 +68,7 @@ const CreateEvent = ({
|
|||||||
setPortalTariff,
|
setPortalTariff,
|
||||||
withoutDialog,
|
withoutDialog,
|
||||||
preview,
|
preview,
|
||||||
|
toForm,
|
||||||
publicRoomKey,
|
publicRoomKey,
|
||||||
actionEdit,
|
actionEdit,
|
||||||
openOnNewPage,
|
openOnNewPage,
|
||||||
@ -176,6 +177,8 @@ const CreateEvent = ({
|
|||||||
searchParams.append("action", "edit");
|
searchParams.append("action", "edit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (toForm) searchParams.append("toForm", "true");
|
||||||
|
|
||||||
if (publicRoomKey) {
|
if (publicRoomKey) {
|
||||||
searchParams.append("share", publicRoomKey);
|
searchParams.append("share", publicRoomKey);
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ const GlobalEvents = ({ enablePlugins, eventListenerItemsList }) => {
|
|||||||
templateId: null,
|
templateId: null,
|
||||||
fromTemplate: null,
|
fromTemplate: null,
|
||||||
onClose: null,
|
onClose: null,
|
||||||
|
toForm: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const [renameDialogProps, setRenameDialogProps] = useState({
|
const [renameDialogProps, setRenameDialogProps] = useState({
|
||||||
@ -116,6 +117,7 @@ const GlobalEvents = ({ enablePlugins, eventListenerItemsList }) => {
|
|||||||
preview: payload.preview ?? false,
|
preview: payload.preview ?? false,
|
||||||
actionEdit: payload.edit ?? false,
|
actionEdit: payload.edit ?? false,
|
||||||
openEditor: payload.openEditor ?? true,
|
openEditor: payload.openEditor ?? true,
|
||||||
|
toForm: payload.toForm ?? false,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
setCreateDialogProps({
|
setCreateDialogProps({
|
||||||
visible: false,
|
visible: false,
|
||||||
@ -130,6 +132,7 @@ const GlobalEvents = ({ enablePlugins, eventListenerItemsList }) => {
|
|||||||
preview: false,
|
preview: false,
|
||||||
actionEdit: false,
|
actionEdit: false,
|
||||||
openEditor: true,
|
openEditor: true,
|
||||||
|
toForm: false,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -417,6 +417,7 @@ class DialogsStore {
|
|||||||
withoutDialog,
|
withoutDialog,
|
||||||
preview,
|
preview,
|
||||||
edit: true,
|
edit: true,
|
||||||
|
toForm: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
event.payload = payload;
|
event.payload = payload;
|
||||||
|
@ -45,6 +45,7 @@ type TSearchParams = {
|
|||||||
fromFile?: string;
|
fromFile?: string;
|
||||||
fromTemplate?: string;
|
fromTemplate?: string;
|
||||||
action?: string;
|
action?: string;
|
||||||
|
toForm?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
async function Page({ searchParams }: { searchParams: TSearchParams }) {
|
async function Page({ searchParams }: { searchParams: TSearchParams }) {
|
||||||
@ -65,6 +66,7 @@ async function Page({ searchParams }: { searchParams: TSearchParams }) {
|
|||||||
fromTemplate,
|
fromTemplate,
|
||||||
formId,
|
formId,
|
||||||
action,
|
action,
|
||||||
|
toForm,
|
||||||
} = searchParams;
|
} = searchParams;
|
||||||
|
|
||||||
if (!parentId || !fileTitle) redirect(baseURL);
|
if (!parentId || !fileTitle) redirect(baseURL);
|
||||||
@ -87,7 +89,14 @@ async function Page({ searchParams }: { searchParams: TSearchParams }) {
|
|||||||
|
|
||||||
const { file, error } =
|
const { file, error } =
|
||||||
fromFile && templateId
|
fromFile && templateId
|
||||||
? await fileCopyAs(templateId, fileTitle, parentId, false, password)
|
? await fileCopyAs(
|
||||||
|
templateId,
|
||||||
|
fileTitle,
|
||||||
|
parentId,
|
||||||
|
false,
|
||||||
|
password,
|
||||||
|
toForm,
|
||||||
|
)
|
||||||
: await createFile(parentId, fileTitle, templateId, formId);
|
: await createFile(parentId, fileTitle, templateId, formId);
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
|
@ -228,7 +228,7 @@ export type EditorProps = {
|
|||||||
errorMessage?: string;
|
errorMessage?: string;
|
||||||
isSkipError?: boolean;
|
isSkipError?: boolean;
|
||||||
|
|
||||||
onDownloadAs: (obj: object) => void;
|
onDownloadAs?: (obj: object) => void;
|
||||||
onSDKRequestSharingSettings?: () => void;
|
onSDKRequestSharingSettings?: () => void;
|
||||||
onSDKRequestSaveAs?: (event: object) => void;
|
onSDKRequestSaveAs?: (event: object) => void;
|
||||||
onSDKRequestInsertImage?: (event: object) => void;
|
onSDKRequestInsertImage?: (event: object) => void;
|
||||||
|
@ -54,6 +54,7 @@ export async function fileCopyAs(
|
|||||||
destFolderId: string,
|
destFolderId: string,
|
||||||
enableExternalExt?: boolean,
|
enableExternalExt?: boolean,
|
||||||
password?: string,
|
password?: string,
|
||||||
|
toForm?: string,
|
||||||
): Promise<{
|
): Promise<{
|
||||||
file: TFile | undefined;
|
file: TFile | undefined;
|
||||||
error:
|
error:
|
||||||
@ -77,6 +78,7 @@ export async function fileCopyAs(
|
|||||||
destFolderId: tryParseToNumber(destFolderId),
|
destFolderId: tryParseToNumber(destFolderId),
|
||||||
enableExternalExt,
|
enableExternalExt,
|
||||||
password,
|
password,
|
||||||
|
toForm: toForm === "true",
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user