Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix delete selected resource not working with datatable

Smaug67395e46a4473433
diff --git a/frontend/app/pages/dashboard/cdn/index.vue b/frontend/app/pages/dashboard/cdn/index.vue
index 906d20d2..1ffa588d 100644
--- a/frontend/app/pages/dashboard/cdn/index.vue
+++ b/frontend/app/pages/dashboard/cdn/index.vue
@@ -47,7 +47,7 @@
<template #action="{ cell }">
<NuxtLink :href="`/dashboard/cdn/${(cell?.data as Node).id}/preview`" style="margin-right: 10px"><Icon name="view" /> </NuxtLink>
<NuxtLink :to="`/dashboard/cdn/${(cell?.data as Node).id}`"><Icon name="edit" style="margin-right: 10px" /></NuxtLink>
- <Icon name="delete" @click="() => deleteRessource((cell?.data as Node).id)" />
+ <span @click="() => deleteRessource((cell?.data as Node).id)"><Icon name="delete" /></span>
</template>
</DataTable>
<div v-else>