Various bugfixes and minor improvements

This commit is contained in:
grimsi
2025-07-19 15:11:40 +02:00
parent 577f901e85
commit c01222d521
12 changed files with 110 additions and 60 deletions
@@ -23,22 +23,13 @@ export default function LibraryCreationModal({
const [scanAfterCreation, setScanAfterCreation] = useState<boolean>(true);
async function createLibrary(library: LibraryDto) {
try {
await LibraryEndpoint.createLibrary(library as LibraryDto, scanAfterCreation);
await LibraryEndpoint.createLibrary(library as LibraryDto, scanAfterCreation);
addToast({
title: "New library created",
description: `Library ${library.name} created!`,
color: "success"
});
} catch (e) {
addToast({
title: "Error creating library",
description: `Library ${library.name} could not be created!`,
color: "warning"
});
throw "Error creating library: " + e;
}
addToast({
title: "New library created",
description: `Library ${library.name} created!`,
color: "success"
});
}
return (