fix: restore download notification

This commit is contained in:
Timothy J. Baek 2024-01-06 13:27:02 -08:00
parent cf23c23134
commit e7d8d49374

View File

@ -337,6 +337,12 @@
toast.error(data.error);
} else {
toast.success(`Model ${modelName} was successfully downloaded`);
const notification = new Notification(`Ollama`, {
body: `Model '${modelName}' has been successfully downloaded.`,
icon: '/favicon.png'
});
models.set(await getModels());
}
}