fix sonarqube findings
Sonarqube Scanner / Prepare environment (push) Successful in 7s
Sonarqube Scanner / Build and test (push) Successful in 20s
Sonarqube Scanner / SonarQube analysis (push) Successful in 52s
Sonarqube Scanner / Deploy to Server (push) Successful in 5s

This commit is contained in:
Florian Zumpe
2026-09-30 23:34:26 +02:00
parent 8f4664282b
commit 607e5450e1
6 changed files with 40 additions and 19 deletions
+5 -1
View File
@@ -132,6 +132,10 @@ globalThis.Wegwichtel ??= {};
if (message && !routeTask) message.textContent = saved
? `${saved.count} Dateien dieser Strecke sind auf dem Gerät gespeichert.`
: 'Speichert nur diese Strecke mit GPX, Bildern und Audio für die App.';
updateGpxDownload(route);
}
function updateGpxDownload(route) {
const gpx = document.getElementById('route-gpx-download');
if (gpx) {
gpx.hidden = !route.gpxUrl;
@@ -199,7 +203,7 @@ globalThis.Wegwichtel ??= {};
const run = action => {
const route = selectedRoute;
if (!route) return;
void action(route).catch(error => {
return action(route).catch(error => {
if (selectedRoute !== route) return;
const message = document.getElementById('route-offline-status');
if (message) message.textContent = `${error.message} Ein bisheriger Offline-Stand bleibt erhalten.`;