Skip to content

Commit

Permalink
content items wait until latest payload to show input/output highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Oct 19, 2023
1 parent d44934f commit 38e5049
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions client/src/components/History/CurrentHistory/HistoryPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,15 @@ export default {
...mapActions(useHistoryItemsStore, ["fetchHistoryItems"]),
getHighlight(item) {
const highlightsKey = FilterClass.getFilterValue(this.filterText, "related");
if (highlightsKey == item.hid) {
return "active";
} else if (highlightsKey) {
if (item.hid > highlightsKey) {
return "output";
} else {
return "input";
if (!this.loading) {
if (highlightsKey == item.hid) {
return "active";
} else if (highlightsKey) {
if (item.hid > highlightsKey) {
return "output";
} else {
return "input";
}
}
} else {
return null;
Expand Down

0 comments on commit 38e5049

Please sign in to comment.