Skip to content

Commit

Permalink
Merge pull request #4009 from LibreSign/backport/4007/stable29
Browse files Browse the repository at this point in the history
[stable29] feat: only show name and allow save signer when have signer
  • Loading branch information
vitormattos authored Nov 21, 2024
2 parents 2840afd + 20b0d7f commit 4a82653
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Components/Request/IdentifySigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
@update:account="updateAccount"
@update:email="updateEmail"
@update:display-name="updateDisplayName" />
<label for="name-input">{{ t('libresign', 'Signer name') }}</label>
<NcTextField v-model="displayName"
<label v-if="signerSelected" for="name-input">{{ t('libresign', 'Signer name') }}</label>
<NcTextField v-if="signerSelected"
v-model="signerSelected"
aria-describedby="name-input"
autocapitalize="none"
:label="t('libresign', 'Signer name')"
Expand All @@ -21,7 +22,9 @@
<NcButton @click="filesStore.disableIdentifySigner()">
{{ t('libresign', 'Cancel') }}
</NcButton>
<NcButton type="primary" @click="saveSigner">
<NcButton type="primary"
:disabled="!signerSelected"
@click="saveSigner">
{{ saveButtonText }}
</NcButton>
</div>
Expand Down Expand Up @@ -101,6 +104,9 @@ export default {
return {}
}
},
signerSelected() {
return this.methods.account.value || this.methods.email.value
},
isNewSigner() {
return this.id === null || this.id === undefined
},
Expand Down

0 comments on commit 4a82653

Please sign in to comment.