Skip to content

Commit

Permalink
fix watermarks issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jan 6, 2024
1 parent ca0d7ed commit 57d5d41
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 2.0.9
- fixed ignore for istanbul (#3)
- fixed duplicate source file
- updated UI
- fixed UI issues

* 2.0.8
- added new feature `v8 ignore next N/start/stop`
Expand Down
16 changes: 12 additions & 4 deletions packages/v8/src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -661,17 +661,25 @@ const getGridData = () => {
};
const watermarkFilter = (status) => {
if (!status) {
return false;
}
const map = {
low: state.watermarkLow,
medium: state.watermarkMedium,
high: state.watermarkHigh
};
// always true if all checked
if (map.low && map.medium && map.high) {
return true;
}
// shows unknown if all unchecked
map.unknown = !map.low && !map.medium && !map.high;
if (map[status]) {
return true;
}
return false;
};
Expand All @@ -684,7 +692,7 @@ const searchHandler = (rowItem) => {
const status = rowItem[`${state.watermarkType}_status`];
const watermarkGate = watermarkFilter(status);
if (!watermarkGate) {
return;
return false;
}
const keywords = state.keywords.trim().toLowerCase();
Expand Down

0 comments on commit 57d5d41

Please sign in to comment.