|
131 | 131 | v-if="showSigningProgress" |
132 | 132 | :status="signingProgressStatus ?? FILE_STATUS.SIGNING_IN_PROGRESS" |
133 | 133 | :status-text="signingProgressStatusText" |
134 | | - :progress="signingProgressView ?? undefined" |
| 134 | + :progress="signingProgress ?? undefined" |
135 | 135 | :is-loading="hasLoading" /> |
136 | 136 | <NcFormBox v-if="filesStore.canSign()" class="action-form-box"> |
137 | 137 | <NcButton |
@@ -345,15 +345,6 @@ type IdentifySignerToEdit = { |
345 | 345 | description?: string |
346 | 346 | identifyMethods?: IdentifySignerMethod[] |
347 | 347 | } |
348 | | -type SigningProgressView = { |
349 | | - total: number |
350 | | - signed: number |
351 | | - signers?: Array<{ |
352 | | - id: string | number |
353 | | - displayName: string |
354 | | - signed: boolean |
355 | | - }> |
356 | | -} |
357 | 348 | type SigningOrderDiagramSigner = { |
358 | 349 | displayName?: string |
359 | 350 | signed?: boolean |
@@ -451,21 +442,6 @@ const envelopeFilesCount = computed(() => filesStore.getFile()?.filesCount || 0) |
451 | 442 | const size = computed(() => window.matchMedia('(max-width: 512px)').matches ? 'full' : 'normal') |
452 | 443 | const modalTitle = computed(() => Object.keys(signerToEdit.value).length > 0 ? t('libresign', 'Edit signer') : t('libresign', 'Add new signer')) |
453 | 444 | const showSigningProgress = computed(() => signingProgressStatus.value === FILE_STATUS.SIGNING_IN_PROGRESS) |
454 | | -const signingProgressView = computed<SigningProgressView | null>(() => { |
455 | | - if (!signingProgress.value) { |
456 | | - return null |
457 | | - } |
458 | | -
|
459 | | - return { |
460 | | - total: signingProgress.value.total, |
461 | | - signed: signingProgress.value.signed, |
462 | | - signers: signingProgress.value.signers?.map(signer => ({ |
463 | | - id: signer.id, |
464 | | - displayName: signer.displayName, |
465 | | - signed: signer.signed !== null, |
466 | | - })), |
467 | | - } |
468 | | -}) |
469 | 445 | const signingOrderDiagramSigners = computed<SigningOrderDiagramSigner[]>(() => { |
470 | 446 | const signers = filesStore.getFile()?.signers || [] |
471 | 447 | return signers.map((signer: EditableRequestSigner) => ({ |
|
0 commit comments