mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
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:
commit
4535979d7d
1 changed files with 8 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue