mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
fix(web): reset infinite scroll when notification filters change
This commit is contained in:
@@ -23,6 +23,10 @@ const props = withDefaults(
|
||||
|
||||
/** whether we should load more notifications */
|
||||
const canLoadMore = ref(true);
|
||||
/** reset when props (e.g. props.type filter) change*/
|
||||
watch(props, () => {
|
||||
canLoadMore.value = true;
|
||||
});
|
||||
|
||||
const { result, error, fetchMore } = useQuery(getNotifications, () => ({
|
||||
filter: {
|
||||
|
||||
Reference in New Issue
Block a user