Skip to content

Commit 7c9a309

Browse files
authored
Merge pull request #6318 from LibreSign/fix/select-items-at-libresign-file-list
fix: select items at libresign file list
2 parents 19f1a16 + f47652a commit 7c9a309

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/views/FilesList/FileEntry/FileEntryCheckbox.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export default {
5757
return this.selectionStore.selected
5858
},
5959
isSelected() {
60-
return this.selectedFiles.includes(this.source.id)
60+
return this.selectedFiles.includes(this.source.nodeId)
6161
},
6262
index() {
63-
return this.filesStore.ordered.findIndex(fileId => Number(fileId) === this.source.id)
63+
return this.filesStore.ordered.findIndex(nodeId => Number(nodeId) === this.source.nodeId)
6464
},
6565
ariaLabel() {
6666
return t('libresign', 'Toggle selection for file "{displayName}"', { displayName: this.source.basename })
@@ -77,7 +77,7 @@ export default {
7777
7878
// Get the last selected and select all files in between
7979
if (this.keyboardStore?.shiftKey && lastSelectedIndex !== null) {
80-
const isAlreadySelected = this.selectedFiles.includes(this.source.id)
80+
const isAlreadySelected = this.selectedFiles.includes(this.source.nodeId)
8181
8282
const start = Math.min(newSelectedIndex, lastSelectedIndex)
8383
const end = Math.max(lastSelectedIndex, newSelectedIndex)

0 commit comments

Comments
 (0)