Skip to content

Commit 8dc21db

Browse files
committed
refactor: pass signing progress payload directly
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 0476b6c commit 8dc21db

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

src/components/RightSidebar/RequestSignatureTab.vue

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
v-if="showSigningProgress"
132132
:status="signingProgressStatus ?? FILE_STATUS.SIGNING_IN_PROGRESS"
133133
:status-text="signingProgressStatusText"
134-
:progress="signingProgressView ?? undefined"
134+
:progress="signingProgress ?? undefined"
135135
:is-loading="hasLoading" />
136136
<NcFormBox v-if="filesStore.canSign()" class="action-form-box">
137137
<NcButton
@@ -345,15 +345,6 @@ type IdentifySignerToEdit = {
345345
description?: string
346346
identifyMethods?: IdentifySignerMethod[]
347347
}
348-
type SigningProgressView = {
349-
total: number
350-
signed: number
351-
signers?: Array<{
352-
id: string | number
353-
displayName: string
354-
signed: boolean
355-
}>
356-
}
357348
type SigningOrderDiagramSigner = {
358349
displayName?: string
359350
signed?: boolean
@@ -451,21 +442,6 @@ const envelopeFilesCount = computed(() => filesStore.getFile()?.filesCount || 0)
451442
const size = computed(() => window.matchMedia('(max-width: 512px)').matches ? 'full' : 'normal')
452443
const modalTitle = computed(() => Object.keys(signerToEdit.value).length > 0 ? t('libresign', 'Edit signer') : t('libresign', 'Add new signer'))
453444
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-
})
469445
const signingOrderDiagramSigners = computed<SigningOrderDiagramSigner[]>(() => {
470446
const signers = filesStore.getFile()?.signers || []
471447
return signers.map((signer: EditableRequestSigner) => ({

0 commit comments

Comments
 (0)