@@ -5,7 +5,7 @@ import { toLonLat } from 'ol/proj'
55import { unByKey } from 'ol/Observable'
66import type { EventsKey } from 'ol/events'
77import useNotifier from './useNotifier'
8- import {
8+ import useSettings , {
99 GLOBAL_DATA_MAP_COMPLETE_ZOOM_LEVEL ,
1010 GLOBAL_DATA_MAP_FIELD_START_ZOOM_LEVEL ,
1111} from './useSettings'
@@ -123,6 +123,7 @@ function getEndpoints() {
123123
124124export default function useGlobalFeedback ( mapRef : ShallowRef < Map | null > ) {
125125 const { showError, showSuccess } = useNotifier ( )
126+ const { settings } = useSettings ( )
126127 const { tileRating : tileRatingEndpoint , tellUsMore : tellUsMoreEndpoint } = getEndpoints ( )
127128
128129 const sliderValue = ref < number > ( 1 )
@@ -275,6 +276,7 @@ export default function useGlobalFeedback(mapRef: ShallowRef<Map | null>) {
275276 rating : selectedLevel . value ,
276277 bbox : mapExtent . value ,
277278 resolution : mapResolution . value ,
279+ confidence_threshold : settings . value . threshold ,
278280 tags : selectedTags . value ,
279281 } )
280282 return true
@@ -294,12 +296,9 @@ export default function useGlobalFeedback(mapRef: ShallowRef<Map | null>) {
294296 }
295297 }
296298
297- const openDetailsDialogFromTags = async ( ) => {
298- const ok = await postRating ( )
299- if ( ok ) {
300- closeTagsDialog ( )
301- openDetailsDialog ( )
302- }
299+ const openDetailsDialogFromTags = ( ) => {
300+ closeTagsDialog ( )
301+ openDetailsDialog ( )
303302 }
304303
305304 const openDetailsDialog = ( ) => {
@@ -364,6 +363,8 @@ export default function useGlobalFeedback(mapRef: ShallowRef<Map | null>) {
364363 rating : selectedLevel . value ,
365364 bbox : mapExtent . value ,
366365 resolution : mapResolution . value ,
366+ confidence_threshold : settings . value . threshold ,
367+ tags : selectedTags . value ,
367368 }
368369
369370 if ( detailsForm . value . name ) {
0 commit comments