11<template >
22 <div class =" mapcontrols" >
3- <!-- <div style="display:none">{{bufer}}</div> -->
3+ <!-- <div style="display:none">{{bufer}}</div> -->
44 <div class =" flexline" >
5-
65 <div id =" bookmarks" class =" popover-bottom-left popover" popover >
7- <h3 >{{$t("bookmarks.listtitle")}}</h3 >
6+ <h3 >{{ $t("bookmarks.listtitle") }}</h3 >
87 <Bookmarks />
98 </div >
10- <button class =" popovercontrol" :class =" bookmarks && bookmarks.length > 0 ? 'active' : null" popovertarget =" bookmarks" ><font-awesome-icon icon =" fa-solid fa-bookmark" /></button >
11-
12- <input
13- type =" date"
14- v-model =" start"
15- :max =" maxDate"
16- :disabled =" currentProvider == 'realtime'"
9+ <button
10+ class =" popovercontrol"
11+ :class =" bookmarks && bookmarks.length > 0 ? 'active' : null"
12+ popovertarget =" bookmarks"
13+ >
14+ <font-awesome-icon icon =" fa-solid fa-bookmark" />
15+ </button >
16+
17+ <input type =" date" v-model =" start" :max =" maxDate" :disabled =" currentProvider == 'realtime'" />
18+
19+ <Measures
20+ :startTime =" startTimestamp"
21+ :endTime =" endTimestamp"
22+ :current =" measuretype.toLowerCase()"
1723 />
18-
19- <Measures :current =" measuretype.toLowerCase()" />
24+ <div v-if =" isLoad" >{{ $t("isLoad") }}</div >
2025 </div >
2126
2227 <div class =" flexline" >
2328 <div id =" mapsettings" class =" popover-bottom-right popover" popover >
2429 <section >
2530 <input id =" realtime" v-model =" realtime" type =" checkbox" :checked =" realtime" />
26- <label for =" realtime" >{{$t(' provider.realtime') }}</label >
31+ <label for =" realtime" >{{ $t(" provider.realtime") }}</label >
2732 </section >
2833 <section >
29- <input id =" wind" v-model =" wind" type =" checkbox" :disabled =" !realtime" :checked =" wind && realtime" />
30- <label for =" wind" >{{$t('layer.wind')}}</label >
34+ <input
35+ id =" wind"
36+ v-model =" wind"
37+ type =" checkbox"
38+ :disabled =" !realtime"
39+ :checked =" wind && realtime"
40+ />
41+ <label for =" wind" >{{ $t("layer.wind") }}</label >
3142 </section >
3243 <section >
3344 <input id =" messages" v-model =" messages" type =" checkbox" :checked =" messages" />
34- <label for =" messages" >{{$t(' layer.messages') }}</label >
45+ <label for =" messages" >{{ $t(" layer.messages") }}</label >
3546 </section >
36- <hr />
47+ <hr />
3748 <section >
38- <h3 >{{$t("history.title")}}</h3 >
49+ <h3 >{{ $t("history.title") }}</h3 >
3950 <HistoryImport />
4051 </section >
4152 </div >
42- <button class =" popovercontrol" popovertarget =" mapsettings" ><font-awesome-icon icon =" fa-solid fa-gear" /></button >
43- <slot />
53+ <button class =" popovercontrol" popovertarget =" mapsettings" >
54+ <font-awesome-icon icon =" fa-solid fa-gear" />
55+ </button >
56+ <slot />
4457 </div >
4558 </div >
4659</template >
@@ -58,7 +71,7 @@ import Bookmarks from "../../components/Bookmarks.vue";
5871
5972export default {
6073 emits: [" history" ],
61- props: [" currentProvider" , " canHistory" , " measuretype" ],
74+ props: [" currentProvider" , " canHistory" , " measuretype" , " isLoad " ],
6275 components: { HistoryImport, Measures, Bookmarks },
6376
6477 data () {
@@ -77,18 +90,14 @@ export default {
7790 },
7891 computed: {
7992 startTimestamp : function () {
80- return Number (
81- moment (this .start + " 00:00:00" , " YYYY-MM-DD HH:mm:ss" ).format (" X" )
82- );
93+ return Number (moment (this .start + " 00:00:00" , " YYYY-MM-DD HH:mm:ss" ).format (" X" ));
8394 },
8495 endTimestamp : function () {
85- return Number (
86- moment (this .start + " 23:59:59" , " YYYY-MM-DD HH:mm:ss" ).format (" X" )
87- );
96+ return Number (moment (this .start + " 23:59:59" , " YYYY-MM-DD HH:mm:ss" ).format (" X" ));
8897 },
89- bookmarks : function () {
98+ bookmarks : function () {
9099 return this .store .idbBookmarks ;
91- }
100+ },
92101 },
93102 watch: {
94103 async realtime (v ) {
@@ -139,43 +148,44 @@ export default {
139148 </script >
140149
141150<style scoped>
142- .mapcontrols {
143- bottom : 0 ;
144- box-sizing : border-box ;
145- display : flex ;
146- justify-content : space-between ;
147- left : 0 ;
148- padding : 0 var (--app-controlsgap ) var (--app-controlsgap );
149- position : absolute ;
150- right : 0 ;
151- z-index : 12 ;
152- pointer-events : none ;
153- }
154-
155- .mapcontrols > * {
156- pointer-events : all ;
157- }
158-
159- .popover-bottom-right , .popover-bottom-left {
160- bottom : calc (var (--app-inputheight ) + var (--app-controlsgap ) * 2 );
161- max-width : calc (100vw - var (--app-controlsgap ) * 2 );
162- }
163-
164- .popover-bottom-right {
165- right : var (--app-controlsgap );
166- }
167-
168- .popover-bottom-left {
169- left : var (--app-controlsgap );
170- }
151+ .mapcontrols {
152+ bottom : 0 ;
153+ box-sizing : border-box ;
154+ display : flex ;
155+ justify-content : space-between ;
156+ left : 0 ;
157+ padding : 0 var (--app-controlsgap ) var (--app-controlsgap );
158+ position : absolute ;
159+ right : 0 ;
160+ z-index : 12 ;
161+ pointer-events : none ;
162+ }
163+
164+ .mapcontrols > * {
165+ pointer-events : all ;
166+ }
167+
168+ .popover-bottom-right ,
169+ .popover-bottom-left {
170+ bottom : calc (var (--app-inputheight ) + var (--app-controlsgap ) * 2 );
171+ max-width : calc (100vw - var (--app-controlsgap ) * 2 );
172+ }
173+
174+ .popover-bottom-right {
175+ right : var (--app-controlsgap );
176+ }
177+
178+ .popover-bottom-left {
179+ left : var (--app-controlsgap );
180+ }
171181 </style >
172182
173183<style >
174- .popovercontrol.active {
175- border-color : var (--color-green );
176- }
184+ .popovercontrol.active {
185+ border-color : var (--color-green );
186+ }
177187
178- .popovercontrol.active path {
179- fill : var (--color-green ) !important ;
180- }
181- </style >
188+ .popovercontrol.active path {
189+ fill : var (--color-green ) !important ;
190+ }
191+ </style >
0 commit comments