Skip to content

Commit 6773670

Browse files
committed
session button added
1 parent fc4ba41 commit 6773670

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vue-frontend/warehouse-frontend/src/views/ParentPage.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export default {
7474
goBack(){
7575
this.closeModal();
7676
this.$router.push("/");
77+
},
78+
endSession(){
79+
localStorage.removeItem('mode');
80+
this.$router.push("/");
7781
}
7882
}
7983
};
@@ -240,7 +244,7 @@ function playSuccessSound(){
240244
<div class="footer d-flex w-100">
241245
<div class="container d-flex justify-content-end">
242246
<!-- <button class="btn btn-primary me-2">Cancel</button>-->
243-
<button class="btn btn-primary">Finish scanning</button>
247+
<button class="btn btn-primary" @click="endSession">Finish scanning</button>
244248
</div>
245249
</div>
246250

0 commit comments

Comments
 (0)