Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/components/Notifications/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function onLoadMore() {
},
});
const incomingCount = incoming?.data.notifications.list.length ?? 0;
if (incomingCount === 0) {
if (incomingCount === 0 || incomingCount < props.pageSize) {
canLoadMore.value = false;
}
}
Expand Down
9 changes: 4 additions & 5 deletions web/components/Notifications/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const { teleportTarget, determineTeleportTarget } = useTeleport();
const importance = ref<Importance | undefined>(undefined);

const confirmAndArchiveAll = async () => {
if (
confirm('This will archive all notifications on your Unraid server. Continue?')
) {
if (confirm('This will archive all notifications on your Unraid server. Continue?')) {
await archiveAll();
}
};
Expand Down Expand Up @@ -81,7 +79,7 @@ const confirmAndDeleteAll = async () => {
<Select
@update:model-value="
(val) => {
importance = val as Importance;
importance = val === 'all' ? undefined : (val as Importance);
}
"
>
Expand All @@ -91,7 +89,8 @@ const confirmAndDeleteAll = async () => {
<SelectContent :to="teleportTarget">
<SelectGroup>
<SelectLabel>Notification Types</SelectLabel>
<SelectItem :value="Importance.Alert">Alert</SelectItem>
<SelectItem value="all">All Types</SelectItem>
<SelectItem :value="Importance.Alert"> Alert </SelectItem>
<SelectItem :value="Importance.Info">Info</SelectItem>
<SelectItem :value="Importance.Warning">Warning</SelectItem>
</SelectGroup>
Expand Down