Skip to content

Commit 3f60fff

Browse files
committed
refactor: update RequestSignatureTab to use selectedNodeId from store
- Rename data property 'lastSyncedFileId' to 'lastSyncedNodeId' - Update watcher from 'filesStore.selectedId' to 'filesStore.selectedNodeId' - Update handler to work with newNodeId and oldNodeId parameters - Replace fileId parameter with nodeId in sendNotify method - Use getFile().id to get the current file ID when needed Signed-off-by: Vitor Mattos <[email protected]>
1 parent 18d7464 commit 3f60fff

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Components/RightSidebar/RequestSignatureTab.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export default {
375375
showEnvelopeFilesDialog: false,
376376
infoIcon: svgInfo,
377377
adminSignatureFlow: '',
378-
lastSyncedFileId: null,
378+
lastSyncedNodeId: null,
379379
}
380380
},
381381
computed: {
@@ -594,11 +594,11 @@ export default {
594594
signers(signers) {
595595
this.init(signers)
596596
},
597-
'filesStore.selectedId': {
598-
handler(newFileId, oldFileId) {
599-
if (newFileId && newFileId !== this.lastSyncedFileId) {
597+
'filesStore.selectedNodeId': {
598+
handler(newNodeId, oldNodeId) {
599+
if (newNodeId && newNodeId !== this.lastSyncedNodeId) {
600600
this.syncPreserveOrderWithFile()
601-
this.lastSyncedFileId = newFileId
601+
this.lastSyncedNodeId = newNodeId
602602
}
603603
},
604604
immediate: true,
@@ -684,7 +684,7 @@ export default {
684684
685685
const flow = file.signatureFlow
686686
687-
this.lastSyncedFileId = this.filesStore.selectedId
687+
this.lastSyncedNodeId = this.filesStore.selectedNodeId
688688
689689
if ((flow === 'ordered_numeric' || flow === 2) && !this.isAdminFlowForced) {
690690
this.preserveOrder = true
@@ -845,7 +845,7 @@ export default {
845845
},
846846
async sendNotify(signer) {
847847
const body = {
848-
fileId: this.filesStore.selectedId,
848+
fileId: this.filesStore.getFile().id,
849849
signRequestId: signer.signRequestId,
850850
}
851851

0 commit comments

Comments
 (0)