From f7179e431bbe13731ec3f51310276d2181679cf4 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Fri, 3 Jun 2022 19:41:50 -0500
Subject: Add success certification as snackbar message

---
 src/components/FileUploads.svelte | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

(limited to 'src/components/FileUploads.svelte')

diff --git a/src/components/FileUploads.svelte b/src/components/FileUploads.svelte
index d48f455..2c246f7 100644
--- a/src/components/FileUploads.svelte
+++ b/src/components/FileUploads.svelte
@@ -36,6 +36,10 @@
             snackbarText = `Failed to add ${failed.length} PTs. See console for details.`;
             snackbar.open();
           }
+        })
+        .finally( () => {
+          snackbarText = "Sucessfullyed imported Peer Teacher/s!";
+          snackbar.open();
         });
     }
   }
@@ -50,6 +54,10 @@
           snackbarText =
             "Failed to import lab schedule. See console for details.";
           snackbar.open();
+        })
+        .finally(() => {
+          snackbarText = "Sucessfullyed imported Lab/s!";
+          snackbar.open();
         });
     }
   }
@@ -64,6 +72,10 @@
         .catch(() => {
           snackbarText = "Failed to import database. See console for details.";
           snackbar.open();
+        })
+        .finally(() => {
+          snackbarText = "Sucessfullyed imported database!";
+          snackbar.open();
         });
     }
   }
@@ -120,7 +132,7 @@
         color="btn-success"
         accept="application/json"
         multiple={true}
-        bind:files={ptSchedules}
+        bind:files={labSchedule}
       />
     </Card>
 
-- 
cgit v1.2.3

