Skip to content

Commit

Permalink
fix filters & export in terms of displayed topics (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle authored Nov 9, 2023
1 parent 74c1e48 commit 908e7ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/views/project-board/project-bcf/ProjectBcf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export default {
const selectedTopics = ref(new Map());
const fullSelectionRef = computed(() =>
selectedTopics.value.size < topics.value.length
selectedTopics.value.size < displayedTopics.value.length
? selectedTopics.value.size > 0
? null
: false
Expand All @@ -602,8 +602,10 @@ export default {
};
const toggleFullSelection = () => {
if (selectedTopics.value.size < topics.value.length) {
selectedTopics.value = new Map([...topics.value.map(t => [t.guid, t])]);
if (selectedTopics.value.size < displayedTopics.value.length) {
selectedTopics.value = new Map([
...displayedTopics.value.map(t => [t.guid, t])
]);
} else {
selectedTopics.value = new Map();
}
Expand Down

0 comments on commit 908e7ee

Please sign in to comment.