Browse Source

fix: infinite toast error

Timothy J. Baek 1 year ago
parent
commit
2558997cc5
2 changed files with 10 additions and 10 deletions
  1. 9 9
      compose.yaml
  2. 1 1
      src/lib/components/chat/SettingsModal.svelte

+ 9 - 9
compose.yaml

@@ -22,14 +22,14 @@ services:
     restart: unless-stopped
     image: ollama/ollama:latest
 
-  ollama-webui-db:
-    image: mongo
-    container_name: ollama-webui-db
-    restart: always
-    # Make sure to change the username/password!
-    environment:
-      MONGO_INITDB_ROOT_USERNAME: root
-      MONGO_INITDB_ROOT_PASSWORD: example
+  # ollama-webui-db:
+  #   image: mongo
+  #   container_name: ollama-webui-db
+  #   restart: always
+  #   # Make sure to change the username/password!
+  #   environment:
+  #     MONGO_INITDB_ROOT_USERNAME: root
+  #     MONGO_INITDB_ROOT_PASSWORD: example
 
   ollama-webui:
     build:
@@ -41,7 +41,7 @@ services:
     container_name: ollama-webui
     depends_on:
       - ollama
-      - ollama-webui-db
+      # - ollama-webui-db
     ports:
       - 3000:8080
     environment:

+ 1 - 1
src/lib/components/chat/SettingsModal.svelte

@@ -133,7 +133,7 @@
 							throw data.detail;
 						}
 						if (data.status) {
-							if (!data.status.includes('downloading')) {
+							if (!data.digest) {
 								toast.success(data.status);
 							} else {
 								digest = data.digest;