forked from open-webui/open-webui
fix: restore download notification
This commit is contained in:
parent
cf23c23134
commit
e7d8d49374
1 changed files with 6 additions and 0 deletions
|
@ -337,6 +337,12 @@
|
||||||
toast.error(data.error);
|
toast.error(data.error);
|
||||||
} else {
|
} else {
|
||||||
toast.success(`Model ${modelName} was successfully downloaded`);
|
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());
|
models.set(await getModels());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue