Skip to content

Commit

Permalink
Basic reset data now set up, with Languages in dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ZermattChris committed Apr 17, 2023
1 parent cf9a520 commit d07476e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/components/ResetDataButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
onClickedBtn: function () {
console.log("clicked reset button")
if (!window.confirm('Reset your flight Dates and Info?')) {
if (!window.confirm( this.$t('nav.reset-data') )) {
return
}
Expand All @@ -58,7 +58,11 @@ export default {
this.$store.dispatch('clearSlotsPassengers')
//return to the Start page and reload. Fingers crossed.
this.$router.push('/')
if (this.$route.name !== 'Start') {
this.$router.push('/') // return to step 1
}
window.location.reload()
},
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"breadcrumb-info": "Passagierinfo",
"breadcrumb-pay": "Bezahlen",
"close": "Schliessen",
"done": "Fertig"
"done": "Fertig",
"reset-data": "Ihre Flugdaten und Informationen zurücksetzen?"
},
"form": {
"required": "Erforderlich",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"breadcrumb-info": "Passenger Info",
"breadcrumb-pay": "Pay",
"close": "Close",
"done": "Done"
"done": "Done",
"reset-data": "Reset your flight Dates and Info?"
},
"form": {
"required": "Required",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"breadcrumb-info": "Infos sur les Passagers",
"breadcrumb-pay": "Payer",
"close": "Fermer",
"done": "Terminé"
"done": "Terminé",
"reset-data": "Réinitialisez vos dates de vol et vos informations?"
},
"form": {
"required": "Obligatoire",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"breadcrumb-info": "승객 정보",
"breadcrumb-pay": "지불",
"close": "닫다",
"done": "완료"
"done": "완료",
"reset-data": "항공편 날짜 및 정보를 재설정하시겠습니까?"
},
"form": {
"required": "필수",
Expand Down

0 comments on commit d07476e

Please sign in to comment.