|
62 | 62 | </div> |
63 | 63 | <NcDialog v-if="signMethodsStore.modal.clickToSign" |
64 | 64 | :no-close="loading" |
65 | | - :name="t('libresign', 'Confirm')" |
| 65 | + :name="t('libresign', 'Sign document')" |
66 | 66 | size="small" |
67 | 67 | dialog-classes="libresign-dialog" |
68 | 68 | @closing="signMethodsStore.closeModal('clickToSign')"> |
|
73 | 73 | <NcRichText :text="error.message" |
74 | 74 | :use-markdown="true" /> |
75 | 75 | </NcNoteCard> |
76 | | - {{ t('libresign', 'Confirm your signature') }} |
| 76 | + |
| 77 | + <p class="confirmation-text"> |
| 78 | + {{ t('libresign', 'Confirm that you want to sign this document.') }} |
| 79 | + </p> |
| 80 | + |
77 | 81 | <template #actions> |
78 | 82 | <NcButton :disabled="loading" |
79 | 83 | @click="signMethodsStore.closeModal('clickToSign')"> |
|
85 | 89 | <template #icon> |
86 | 90 | <NcLoadingIcon v-if="loading" :size="20" /> |
87 | 91 | </template> |
88 | | - {{ t('libresign', 'Confirm') }} |
| 92 | + {{ t('libresign', 'Sign document') }} |
89 | 93 | </NcButton> |
90 | 94 | </template> |
91 | 95 | </NcDialog> |
92 | 96 | <NcDialog v-if="signMethodsStore.modal.password" |
93 | 97 | :no-close="loading" |
94 | | - :name="t('libresign', 'Confirm your signature')" |
| 98 | + :name="t('libresign', 'Sign document')" |
95 | 99 | size="small" |
96 | 100 | dialog-classes="libresign-dialog" |
97 | 101 | @closing="onCloseConfirmPassword"> |
|
102 | 106 | <NcRichText :text="error.message" |
103 | 107 | :use-markdown="true" /> |
104 | 108 | </NcNoteCard> |
105 | | - {{ t('libresign', 'Subscription password.') }} |
| 109 | + |
| 110 | + <p class="confirmation-text"> |
| 111 | + {{ t('libresign', 'Enter your signature password to sign the document.') }} |
| 112 | + </p> |
| 113 | + |
106 | 114 | <form @submit.prevent="signWithPassword()"> |
107 | | - <NcPasswordField v-model="signPassword" type="password" /> |
| 115 | + <NcPasswordField v-model="signPassword" |
| 116 | + :label="t('libresign', 'Signature password')" |
| 117 | + type="password" /> |
108 | 118 | </form> |
109 | 119 | <a id="lost-password" @click="toggleManagePassword">{{ t('libresign', 'Forgot password?') }}</a> |
110 | 120 | <ManagePassword v-if="showManagePassword" |
|
117 | 127 | <template #icon> |
118 | 128 | <NcLoadingIcon v-if="loading" :size="20" /> |
119 | 129 | </template> |
120 | | - {{ t('libresign', 'Sign the document.') }} |
| 130 | + {{ t('libresign', 'Sign document') }} |
121 | 131 | </NcButton> |
122 | 132 | </template> |
123 | 133 | </NcDialog> |
@@ -247,8 +257,10 @@ export default { |
247 | 257 |
|
248 | 258 | const visibleElements = getVisibleElementsFromDocument(document) |
249 | 259 | .filter(row => { |
250 | | - return this.signatureElementsStore.hasSignatureOfType(row.type) |
251 | | - && signRequestIds.has(String(row.signRequestId)) |
| 260 | + // Access signatureElementsStore.signs[row.type] directly to ensure reactivity |
| 261 | + const signatureData = this.signatureElementsStore.signs[row.type] |
| 262 | + const hasSignature = signatureData && signatureData.createdAt && signatureData.createdAt.length > 0 |
| 263 | + return hasSignature && signRequestIds.has(String(row.signRequestId)) |
252 | 264 | }) |
253 | 265 | return visibleElements |
254 | 266 | }, |
@@ -544,6 +556,29 @@ export default { |
544 | 556 | </script> |
545 | 557 |
|
546 | 558 | <style lang="scss" scoped> |
| 559 | +.progress-indicator { |
| 560 | + font-weight: bold; |
| 561 | + color: var(--color-primary-element); |
| 562 | + text-align: center; |
| 563 | + margin-bottom: 16px; |
| 564 | + padding: 8px; |
| 565 | + background-color: var(--color-primary-element-light); |
| 566 | + border-radius: var(--border-radius-large); |
| 567 | +} |
| 568 | +
|
| 569 | +.step-explanation { |
| 570 | + margin-bottom: 16px; |
| 571 | + color: var(--color-text-maxcontrast); |
| 572 | + line-height: 1.5; |
| 573 | +} |
| 574 | +
|
| 575 | +.confirmation-text { |
| 576 | + margin-bottom: 16px; |
| 577 | + color: var(--color-text-maxcontrast); |
| 578 | + line-height: 1.5; |
| 579 | + text-align: center; |
| 580 | +} |
| 581 | +
|
547 | 582 | .no-signature-warning { |
548 | 583 | margin-top: 1em; |
549 | 584 | } |
|
0 commit comments