π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Files deletion
Smaug67393aebd31c4034
diff --git a/frontend/stores/ressources.store.ts b/frontend/stores/ressources.store.tsindex ce73de85..b6aa9c80 100644--- a/frontend/stores/ressources.store.ts+++ b/frontend/stores/ressources.store.ts@@ -39,6 +39,8 @@ export const useRessourcesStore = defineStore('ressources', {delete(id: string) {return new Promise(async (resolve, reject) => {const request = await makeRequest(`ressources/${id}`, 'DELETE', {});+ console.log(request);+if (request.status == 'success') resolve((this.ressources = this.ressources.filter(c => c.id != id)));else reject(request.message);});