cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-16 16:54:31 +02:00
parent d64c4ad26f
commit a7b21906ba
3 changed files with 324 additions and 244 deletions

View File

@ -76,7 +76,7 @@ Vue.component('multiselect', window.VueMultiselect.default)
const app = new Vue({
el: '#app',
data: {
journey_id : window.location.pathname.slice(1) || gen_id(16),
journey_id : window.location.pathname.split('/').at(-1) || gen_id(16),
journey_step: window.location.hash.slice(1)==""?-1:parseInt(window.location.hash.slice(1)),
journey_step_data: {day:-1, section:-1},
journey_data : {
@ -84,6 +84,7 @@ const app = new Vue({
main:[],
step_title:[],
},
view: window.location.pathname.split('/').at(1),
query:{hotel:[],flight:[],nominatim:[]},
querying:{hotel:false,flight:false,place:false,food:false},
impexp:"",
@ -106,6 +107,7 @@ const app = new Vue({
prev_step: function(){
this.journey_step-=1;
if(this.journey_step<-1) this.journey_step=-1;
if(this.journey_step==-1 && this.view) this.journey_step=0;
this.journey_step_data = this.step_convert(this.journey_step);
window.location.hash = '#' + this.journey_step;