Skip to content

Commit 1176349

Browse files
committed
fix(types): refine signer status typing
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 27ae647 commit 1176349

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Signers/Signer.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
:text="method"
2424
:aria-label="t('libresign', 'Identification method: {method}', { method })"
2525
:no-close="true" />
26-
<NcChip :text="signer.statusText"
26+
<NcChip :text="signer.statusText ?? ''"
2727
:variant="chipType"
2828
:icon-path="statusIconPath"
29-
:aria-label="t('libresign', 'Signer status: {status}', { status: signer.statusText })"
29+
:aria-label="t('libresign', 'Signer status: {status}', { status: signer.statusText ?? '' })"
3030
:no-close="true"
3131
class="signer-status-chip" />
3232
<span v-if="disabledTooltip" class="sr-only">{{ disabledTooltip }}</span>
@@ -76,6 +76,7 @@ type SignerRow = {
7676
signed?: boolean
7777
identifyMethods?: SignerMethod[]
7878
status?: number
79+
statusText?: string
7980
displayName?: string
8081
signingOrder?: number
8182
}
@@ -99,7 +100,7 @@ const signatureFlow = computed(() => {
99100
const file = filesStore.getFile()
100101
let flow = file?.signatureFlow ?? 'parallel'
101102
if (typeof flow === 'number') {
102-
const flowMap = { 0: 'none', 1: 'parallel', 2: 'ordered_numeric' }
103+
const flowMap: Record<number, string> = { 0: 'none', 1: 'parallel', 2: 'ordered_numeric' }
103104
flow = flowMap[flow] || 'parallel'
104105
}
105106
return flow

0 commit comments

Comments
 (0)