Skip to content

Commit

Permalink
Merge branch 'release_24.1' into release_24.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Feb 6, 2025
2 parents 6e7f487 + 3bf2c26 commit 3992f0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,12 @@ export default {
}
});
return this.selected.length + unselectable === this.$refs.folder_content_table.computedItems.length;
const numComputedItems = this.$refs.folder_content_table.computedItems.length;
if (numComputedItems === 0 || numComputedItems === unselectable) {
return false;
}
return this.selected.length + unselectable === numComputedItems;
},
toggleSelect() {
this.unselected = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const containsFileOrFolder = computed(() => {
return props.folderContents.find((el) => el.type === "folder" || el.type === "file");
});
const canDelete = computed(() => {
return !!(containsFileOrFolder.value && props.metadata.can_modify_folder);
return !!props.metadata.can_modify_folder;
});
const datasetManipulation = computed(() => {
return !!(containsFileOrFolder.value && userStore.currentUser);
Expand Down

0 comments on commit 3992f0f

Please sign in to comment.