Skip to content

Commit

Permalink
turn itemsLoaded back to computed to fix selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Oct 23, 2023
1 parent 38e5049 commit 6e2b771
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions client/src/components/History/CurrentHistory/HistoryPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ export default {
operationRunning: null,
operationError: null,
querySelectionBreak: false,
itemsLoaded: [],
};
},
computed: {
Expand Down Expand Up @@ -235,6 +234,10 @@ export default {
isProcessing() {
return this.operationRunning >= this.history.update_time;
},
/** @returns {Array} */
itemsLoaded() {
return this.getHistoryItems(this.historyId, this.filterText);
},
/** @returns {Date} */
lastChecked() {
const { getLastCheckedTime } = storeToRefs(useHistoryItemsStore());
Expand Down Expand Up @@ -307,6 +310,15 @@ export default {
historyUpdateTime() {
this.loadHistoryItems();
},
itemsLoaded(newItems) {
if (this.invisible) {
newItems.forEach((item) => {
if (this.invisible[item.hid]) {
Vue.set(this.invisible, item.hid, false);
}
});
}
},
},
async mounted() {
// `filterable` here indicates if this is the current history panel
Expand Down Expand Up @@ -353,14 +365,6 @@ export default {
console.debug("HistoryPanel - Load items error.", error);
}
} finally {
this.itemsLoaded = this.getHistoryItems(this.historyId, this.filterText);
if (this.invisible) {
this.itemsLoaded.forEach((item) => {
if (this.invisible[item.hid]) {
Vue.set(this.invisible, item.hid, false);
}
});
}
this.loading = false;
}
},
Expand Down

0 comments on commit 6e2b771

Please sign in to comment.