diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 13e651a..33fd887 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '224'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '225'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/routes.js b/backend/static/js/pages/routes.js index 86266a5..e04877c 100644 --- a/backend/static/js/pages/routes.js +++ b/backend/static/js/pages/routes.js @@ -738,23 +738,35 @@ window.Page_routes = (() => {

`; + const _actionBtn = (id, icon, label, danger = false) => + ``; + + const ownerRow = isOwn ? ` +
+ ${_actionBtn('rd-send-friend', 'paper-plane-tilt', 'Senden')} + ${_actionBtn('rd-vis', route.is_public ? 'lock-open' : 'lock', + route.is_public ? 'Öffentlich' : 'Privat')} + ${_actionBtn('rd-del', 'trash', 'Löschen', true)} +
` : ''; + const footer = `
-
- - - - - ${isOwn ? ` -
- - -
- ` : ''} +
+ ${_actionBtn('rd-gpx', 'download-simple', 'GPX')} + ${_actionBtn('rd-share', 'arrow-square-out', 'Teilen')} + ${_actionBtn('rd-navi', 'map-pin', 'Navi')}
+ ${ownerRow}
`; @@ -806,8 +818,8 @@ window.Page_routes = (() => { route.is_public = !route.is_public; const btn = document.getElementById('rd-vis'); if (btn) { - btn.innerHTML = route.is_public ? UI.icon('lock-open') : UI.icon('lock'); - btn.title = route.is_public ? 'Auf Privat setzen' : 'Auf Öffentlich setzen'; + btn.innerHTML = `${UI.icon(route.is_public ? 'lock-open' : 'lock')} + ${route.is_public ? 'Öffentlich' : 'Privat'}`; } const r = _data.find(x => x.id === route.id); if (r) r.is_public = route.is_public;