Skip to content

Commit

Permalink
Make pending retries track its own initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisNickels committed Mar 8, 2024
1 parent 55cdd1a commit 4c5956f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const showCantRetryAll = ref(false);
const showRetryAllConfirm = ref(false);
const pageNumber = ref(1);
const totalCount = ref(0);
const isInitialLoad = ref(true);
const sortOptions = [
{
description: "Time of failure",
Expand Down Expand Up @@ -200,11 +201,12 @@ function retryAllClicked() {
}
}
function sortGroups(sort, isInitialLoad) {
function sortGroups(sort) {
sortMethod = sort;
if (!isInitialLoad) {
if (!isInitialLoad.value) {
loadPendingRetryMessages();
isInitialLoad.value = false;
}
}
Expand Down Expand Up @@ -236,6 +238,8 @@ onMounted(() => {
refreshInterval = setInterval(() => {
loadPendingRetryMessages();
}, 5000);
isInitialLoad.value = false;
});
</script>
Expand Down

0 comments on commit 4c5956f

Please sign in to comment.