Skip to content

Commit 953fb37

Browse files
refactor: update FileEntryActions to use nodeId for file access
- Update file computed property to use source.nodeId instead of source.id - Replace all source.id references with source.nodeId - Update selectFile() calls to pass nodeId Signed-off-by: Vitor Mattos <[email protected]>
1 parent 575039e commit 953fb37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/views/FilesList/FileEntry/FileEntryActions.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default {
141141
return this.enabledMenuActions.filter(action => this.visibleIf(action))
142142
},
143143
file() {
144-
return this.filesStore.files[this.source.id]
144+
return this.filesStore.files[this.source.nodeId]
145145
},
146146
boundariesElement() {
147147
return document.querySelector('.app-content > .files-list')
@@ -208,14 +208,14 @@ export default {
208208
signer_uuid: signUuid,
209209
force_fetch: true,
210210
})
211-
this.signStore.setFileToSign(files[this.source.id])
211+
this.signStore.setFileToSign(files[this.source.nodeId])
212212
this.$router.push({
213213
name: 'SignPDF',
214214
params: {
215215
uuid: signUuid,
216216
},
217217
})
218-
this.filesStore.selectFile(this.source.id)
218+
this.filesStore.selectFile(this.source.nodeId)
219219
} else if (action.id === 'validate') {
220220
this.$router.push({
221221
name: 'ValidationFile',

0 commit comments

Comments
 (0)