Skip to content

Commit

Permalink
Initial reset working.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZermattChris committed Apr 17, 2023
1 parent da3ef8f commit cf9a520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ResetDataButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export default {
onClickedBtn: function () {
console.log("clicked reset button")
if (!window.confirm('Reset your flight Dates and Info?')) {
return
}
this.$store.dispatch('setFlightDate', '')
this.$store.dispatch('setArriveDate', '')
this.$store.dispatch('setDepartDate', '')
Expand All @@ -54,7 +58,7 @@ export default {
this.$store.dispatch('clearSlotsPassengers')
//return to the Start page and reload. Fingers crossed.
if (this.$router.history._startLocation !== '/') this.$router.push('/')
this.$router.push('/')
},
Expand Down

0 comments on commit cf9a520

Please sign in to comment.