Skip to content

Commit

Permalink
Fix menu display conditions to adapt to "any" filter
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Feb 7, 2024
1 parent 5f14cd2 commit bc0b3eb
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
data-description="undelete option">
<span v-localize>Undelete</span>
</b-dropdown-item>
<b-dropdown-item v-if="!showDeleted" v-b-modal:delete-selected-content data-description="delete option">
<b-dropdown-item
v-if="!showStrictDeleted"
v-b-modal:delete-selected-content
data-description="delete option">
<span v-localize>Delete</span>
</b-dropdown-item>
<b-dropdown-item v-b-modal:purge-selected-content data-description="purge option">
Expand Down Expand Up @@ -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} */
Expand Down

0 comments on commit bc0b3eb

Please sign in to comment.