diff --git a/src/routes/(app)/register/views/Final.svelte b/src/routes/(app)/register/views/Final.svelte index 566bc6e..7fe5c0e 100644 --- a/src/routes/(app)/register/views/Final.svelte +++ b/src/routes/(app)/register/views/Final.svelte @@ -7,13 +7,17 @@ import {singleLocker, registrationData, studentId1, studentId2, selectedLocation, pageView, editMode} from "../store.js"; import {goto} from "$app/navigation"; + import {SyncLoader} from "svelte-loading-spinners"; let studentsArr = []; let buttonMessage = 'Submit'; + let loading = false; + async function next() { + loading = true; studentsArr[0] = $studentId1; if (!$singleLocker) studentsArr[1] = $studentId2; @@ -34,6 +38,7 @@ studentId2.set(null); pageView.set(0); } else { + loading = false; //todo show error reason } } @@ -82,6 +87,7 @@ padding: 32px; color: green; background-color: #1b2c42; + position: absolute; } .box-header { @@ -184,6 +190,15 @@ gap: 10px; } + .loading-bar{ + position: absolute; + top: -50px; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + } + @media only screen and (max-width: 600px) { .box { row-gap: 30px; @@ -206,6 +221,12 @@