mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
bug fixes for some desktop tools (#6246)
This commit is contained in:
@@ -112,9 +112,7 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({
|
|||||||
subjectName: string | null;
|
subjectName: string | null;
|
||||||
notAfter: string | null;
|
notAfter: string | null;
|
||||||
error: string | null;
|
error: string | null;
|
||||||
}>(endpoint, formData, {
|
}>(endpoint, formData);
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
});
|
|
||||||
|
|
||||||
if (response.data.valid) {
|
if (response.data.valid) {
|
||||||
setCertValidation({
|
setCertValidation({
|
||||||
|
|||||||
@@ -79,9 +79,6 @@ export const useGetPdfInfoOperation = (): GetPdfInfoOperationHook => {
|
|||||||
const response = await apiClient.post(
|
const response = await apiClient.post(
|
||||||
"/api/v1/security/get-info-on-pdf",
|
"/api/v1/security/get-info-on-pdf",
|
||||||
formData,
|
formData,
|
||||||
{
|
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const stub = selectors.getStirlingFileStub(file.fileId);
|
const stub = selectors.getStirlingFileStub(file.fileId);
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ export const useShowJSOperation = (): ShowJSOperationHook => {
|
|||||||
"/api/v1/misc/show-javascript",
|
"/api/v1/misc/show-javascript",
|
||||||
formData,
|
formData,
|
||||||
{
|
{
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
responseType: "text",
|
responseType: "text",
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -102,9 +102,6 @@ export const useValidateSignatureOperation =
|
|||||||
const response = await apiClient.post(
|
const response = await apiClient.post(
|
||||||
"/api/v1/security/validate-signature",
|
"/api/v1/security/validate-signature",
|
||||||
formData,
|
formData,
|
||||||
{
|
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const data = Array.isArray(response.data)
|
const data = Array.isArray(response.data)
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ const extractBookmarks = async (file: File): Promise<BookmarkPayload[]> => {
|
|||||||
const response = await apiClient.post(
|
const response = await apiClient.post(
|
||||||
"/api/v1/general/extract-bookmarks",
|
"/api/v1/general/extract-bookmarks",
|
||||||
formData,
|
formData,
|
||||||
{
|
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return response.data as BookmarkPayload[];
|
return response.data as BookmarkPayload[];
|
||||||
|
|||||||
@@ -462,11 +462,6 @@ const licenseService = {
|
|||||||
const response = await apiClient.post(
|
const response = await apiClient.post(
|
||||||
"/api/v1/admin/license-file",
|
"/api/v1/admin/license-file",
|
||||||
formData,
|
formData,
|
||||||
{
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
|
|||||||
@@ -98,11 +98,6 @@ class WorkflowService {
|
|||||||
const response = await api.post(
|
const response = await api.post(
|
||||||
"/api/v1/workflow/participant/submit-signature",
|
"/api/v1/workflow/participant/submit-signature",
|
||||||
formData,
|
formData,
|
||||||
{
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user