mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
Signature: get the stored object back in the check signature API
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user