The Delete / Recalculate / Refine / Compare handlers were bound inside `if (mapEl && points.length)` in showSessionDetail, so a track with no points (started recording, no GPS fix, stopped → 0 km) skipped the whole block and its "Удалить" button did nothing. Moved the session-action button handlers outside the map/points guard so they bind regardless. (Also covers a track whose points all get dropped by the new accuracy filter.) DB.deleteGpsSession already handled zero points fine (DELETE of 0 rows is a no-op); the bug was purely the unbound click handler.
38 lines
1 KiB
JSON
38 lines
1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicegui/tauri-v2/refs/heads/main/tooling/cli/schema.json",
|
|
"productName": "BalDav",
|
|
"version": "0.1.408",
|
|
"identifier": "dev.baldav.app",
|
|
"build": {
|
|
"frontendDist": "../frontend"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"security": {
|
|
"csp": "default-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' https://4aiman.top https://*.tile.openstreetmap.org https://*.tile.thunderforest.com https://api.open-meteo.com https://wttr.in http://192.168.1.1:88; img-src 'self' blob: data: https://*.tile.openstreetmap.org https://*.tile.thunderforest.com"
|
|
},
|
|
"windows": [
|
|
{
|
|
"title": "BalDav",
|
|
"width": 400,
|
|
"height": 700,
|
|
"resizable": true
|
|
}
|
|
]
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/icon.png"
|
|
],
|
|
"resources": {
|
|
"../frontend/data/products_seed.db": "data/products_seed.db"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"sql": {
|
|
"preload": ["sqlite:baldav.db"]
|
|
}
|
|
}
|
|
}
|