Added Notes and Folding
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir 2023-06-19 13:00:40 +02:00
parent 204fd42eca
commit 08b3940501
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
2 changed files with 4 additions and 5 deletions

View File

@ -224,10 +224,7 @@ const app = new Vue({
this.journey_data.main.splice(idx,1);
},
toggle_section_vis: function(idx){
this.journey_data.main[idx].hidden = !this.journey_data.main[idx].hidden;
},
get_section_vis: function(idx){
return !this.journey_data.main[idx].hidden
this.journey_data.visible = idx;
},
search_nominatim: function(txt,f){
if(txt==""){
@ -274,6 +271,8 @@ const app = new Vue({
},
import_data:function(){
this.journey_data = Object.assign({}, JSON.parse(toDecoded(this.impexp)));
this.journey_data.visible = this.journey_data.visible || -1;
},
export_data:function(){
this.impexp = toEncoded(JSON.stringify(this.journey_data));

View File

@ -47,7 +47,7 @@
<div class="col-auto"><button class="button button--secondary button--mobileFull" v-on:click="toggle_section_vis(idx)">-</button></div>
<div class="input col-sm-4"><input class="" v-model="item.title" type="text" /></div>
</div>
<div class="row" v-show="!journey_data.main[idx].hidden">
<div class="row" v-show="journey_data.visible == idx">
<div class="col-12 col-sm-8">
<l-map
:zoom.sync="item.map.zoom"