mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Merge pull request #5323 from LibreSign/fix/prevent-show-add-signers-early
fix: prevent show add signers early
This commit is contained in:
commit
8cd6ae4723
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ export const useFilesStore = function(...args) {
|
|||
&& file.signers
|
||||
.filter(signer => signer.signed?.length > 0).length === file.signers.length
|
||||
},
|
||||
loadedAllData(file) {
|
||||
file = this.getFile(file)
|
||||
return Object.hasOwn(file, 'status')
|
||||
},
|
||||
canSign(file) {
|
||||
file = this.getFile(file)
|
||||
return !this.isFullSigned(file)
|
||||
|
|
@ -132,6 +136,7 @@ export const useFilesStore = function(...args) {
|
|||
canAddSigner(file) {
|
||||
file = this.getFile(file)
|
||||
return this.canRequestSign
|
||||
&& this.loadedAllData(file)
|
||||
&& (
|
||||
!Object.hasOwn(file, 'requested_by')
|
||||
|| file.requested_by.userId === getCurrentUser()?.uid
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue