Merge pull request #6157 from LibreSign/fix/edit-signer-modal-title

fix: update modal title to reflect edit vs add signer action
This commit is contained in:
Vitor Mattos 2025-12-12 13:40:03 -03:00 committed by GitHub
commit 4535979d7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,9 +117,9 @@
<NcDialog v-if="filesStore.identifyingSigner"
id="request-signature-identify-signer"
:size="size"
:name="t('libresign', 'Add new signer')"
:name="modalTitle"
@closing="filesStore.disableIdentifySigner()">
<NcAppSidebar :name="t('libresign', 'Add new signer')">
<NcAppSidebar :name="modalTitle">
<NcAppSidebarTab v-for="method in enabledMethods()"
:id="`tab-${method.name}`"
:key="method.name"
@ -314,6 +314,12 @@ export default {
size() {
return window.matchMedia('(max-width: 512px)').matches ? 'full' : 'normal'
},
modalTitle() {
if (Object.keys(this.signerToEdit).length > 0) {
return this.t('libresign', 'Edit signer')
}
return this.t('libresign', 'Add new signer')
},
},
watch: {
signers(signers) {