Signature: get the stored object back in the check signature API

This commit is contained in:
nobohan
2024-09-12 15:26:03 +02:00
parent ae1459cf77
commit 092b5c4f90
3 changed files with 91 additions and 62 deletions

View File

@@ -224,6 +224,7 @@ import { useToast } from "vue-toast-notification";
import "vue-toast-notification/dist/theme-sugar.css";
import {
CanvasEvent,
CheckSignature,
Signature,
SignatureZone,
SignedState,
@@ -460,9 +461,10 @@ const drawAllZones = (page: number) => {
const checkSignature = () => {
const url = `/api/1.0/document/workflow/${signature.id}/check-signature`;
return makeFetch("GET", url)
return makeFetch<CheckSignature, CheckSignature>("GET", url)
.then((r) => {
signedState.value = r as SignedState;
signedState.value = r.state;
signature.storedObject = r.storedObject;
checkForReady();
})
.catch((error) => {