Browse Source

fix: restore download notification

Timothy J. Baek 1 year ago
parent
commit
e7d8d49374
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/components/chat/SettingsModal.svelte

+ 6 - 0
src/lib/components/chat/SettingsModal.svelte

@@ -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());
 				}
 			}