Skip to content

Commit

Permalink
add single locker change id input
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed May 24, 2024
1 parent 8845cd1 commit 3ca7624
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/(app)/register/views/Selection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
}
async function next() {
let prevType = $singleLocker;
selectedLocation.set({
building: value1.label,
floor: value2.label,
Expand All @@ -51,6 +53,10 @@
pageView.set(4);
editMode.set(false);
if(prevType !== $singleLocker){ //catch if the locker type changed, then dispaly the id selection again
pageView.set(2);
editMode.set(false);
}
} else {
pageView.set(2);
}
Expand Down

0 comments on commit 3ca7624

Please sign in to comment.