From bc0b3eb98d0d7426cc425ce84a64a24c83efd364 Mon Sep 17 00:00:00 2001
From: davelopez <46503462+davelopez@users.noreply.github.com>
Date: Wed, 7 Feb 2024 14:52:53 +0100
Subject: [PATCH] Fix menu display conditions to adapt to "any" filter
---
.../HistoryOperations/SelectionOperations.vue | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue
index 4954da962ccd..27e478cea34b 100644
--- a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue
+++ b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue
@@ -25,7 +25,10 @@
data-description="undelete option">
Undelete
-
+
Delete
@@ -193,10 +196,14 @@ export default {
computed: {
/** @returns {Boolean} */
showHidden() {
- return HistoryFilters.checkFilter(this.filterText, "visible", false);
+ return !HistoryFilters.checkFilter(this.filterText, "visible", true);
},
/** @returns {Boolean} */
showDeleted() {
+ return !HistoryFilters.checkFilter(this.filterText, "deleted", false);
+ },
+ /** @returns {Boolean} */
+ showStrictDeleted() {
return HistoryFilters.checkFilter(this.filterText, "deleted", true);
},
/** @returns {Boolean} */