feat: delete all notifications

This commit is contained in:
DecDuck
2025-11-22 10:28:21 +11:00
parent 973c3efa18
commit e230f79b54
6 changed files with 76 additions and 33 deletions

View File

@ -44,9 +44,10 @@
<script setup lang="ts">
import { XMarkIcon } from "@heroicons/vue/24/solid";
import type { SerializeObject } from "nitropack";
import type { NotificationModel } from "~/prisma/client/models";
const props = defineProps<{ notification: NotificationModel }>();
const props = defineProps<{ notification: SerializeObject<NotificationModel> }>();
async function deleteMe() {
await $dropFetch(`/api/v1/notifications/:id`, {