aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/FileUploads.svelte14
1 files changed, 13 insertions, 1 deletions
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>