File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ import SigningProgress from '../components/validation/SigningProgress.vue'
127127import logoGray from ' ../../img/logo-gray.svg'
128128import { openDocument } from ' ../utils/viewer.js'
129129import { getStatusLabel } from ' ../utils/fileStatus.js'
130+ import { getSigningRouteUuid } from ' ../utils/signRequestUuid.ts'
130131import { FILE_STATUS , SIGN_REQUEST_STATUS } from ' ../constants.js'
131132import logger from ' ../logger.js'
132133import { useFilesStore } from ' ../store/files.js'
@@ -319,14 +320,11 @@ const isActiveView = ref(true)
319320
320321const signRequestUuidForProgress = computed (() => {
321322 const doc = signStore ?.document || {}
322- const signer = doc .signers ?.find (row => row .me ) || doc .signers ?.[0 ] || {}
323- const fromDoc = doc .signRequestUuid || doc .sign_request_uuid || doc .signUuid || doc .sign_uuid
324- const fromSigner = signer .sign_uuid
323+ const fromState = loadState (' libresign' , ' sign_request_uuid' , null )
324+ const fromDocument = getSigningRouteUuid (doc , typeof fromState === ' string' ? fromState : null )
325325 return route .value .query ?.signRequestUuid
326326 || route .value .params ?.signRequestUuid
327- || fromDoc
328- || fromSigner
329- || loadState (' libresign' , ' sign_request_uuid' , null )
327+ || fromDocument
330328 || uuidToValidate .value
331329})
332330
You can’t perform that action at this time.
0 commit comments