This commit is contained in:
2025-10-13 20:05:45 +02:00
parent ef1b17c29e
commit f641272c22
8 changed files with 20 additions and 6 deletions

View File

@@ -21,8 +21,8 @@ const { data: fileLibraries } = await useApi('/v2/FileLibrary', { key: FetchKeys
const busy = ref(false);
const deleteLibrary = async (library: FileLibrary) => {
busy.value = true;
await useApi('/v2/FileLibrary/{FileLibraryId}', { path: { FileLibraryId: library.key }, method: 'DELETE' })
.then(() => refreshNuxtData(FetchKeys.FileLibraries))
.finally(() => (busy.value = false));
await useApi('/v2/FileLibrary/{FileLibraryId}', { path: { FileLibraryId: library.key }, method: 'DELETE' });
await refreshNuxtData(FetchKeys.FileLibraries);
busy.value = false;
};
</script>