Fix: Jahresbericht-Modal Schließen-Button + expliziter close-Handler — SW by-v507, APP_VER 484
This commit is contained in:
parent
41d5d745cb
commit
9e9b87af35
3 changed files with 8 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
Router, State-Management, Navigation, Initialisierung.
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const APP_VER = '483'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '484'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||||
|
|
||||||
const App = (() => {
|
const App = (() => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1320,6 +1320,9 @@ window.Page_zuchthunde = (() => {
|
||||||
</p>
|
</p>
|
||||||
</div>`,
|
</div>`,
|
||||||
footer: `
|
footer: `
|
||||||
|
<button class="btn btn-secondary btn-sm" id="ki-bericht-abbrechen">
|
||||||
|
Schließen
|
||||||
|
</button>
|
||||||
<button class="btn btn-ghost btn-sm" id="ki-bericht-letzten-anzeigen">
|
<button class="btn btn-ghost btn-sm" id="ki-bericht-letzten-anzeigen">
|
||||||
${UI.icon('eye')} Letzten anzeigen (${datumStr})
|
${UI.icon('eye')} Letzten anzeigen (${datumStr})
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -1328,6 +1331,7 @@ window.Page_zuchthunde = (() => {
|
||||||
</button>`,
|
</button>`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.getElementById('ki-bericht-abbrechen')?.addEventListener('click', () => UI.modal.close());
|
||||||
document.getElementById('ki-bericht-letzten-anzeigen')?.addEventListener('click', async () => {
|
document.getElementById('ki-bericht-letzten-anzeigen')?.addEventListener('click', async () => {
|
||||||
try {
|
try {
|
||||||
const r = await API.zuchtKi.jahresberichtGet(letzter.id);
|
const r = await API.zuchtKi.jahresberichtGet(letzter.id);
|
||||||
|
|
@ -1381,9 +1385,10 @@ window.Page_zuchthunde = (() => {
|
||||||
<button class="btn btn-ghost btn-sm" id="ki-bericht-download">
|
<button class="btn btn-ghost btn-sm" id="ki-bericht-download">
|
||||||
${UI.icon('download-simple')} Herunterladen
|
${UI.icon('download-simple')} Herunterladen
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-primary" data-modal-close>Schließen</button>`,
|
<button class="btn btn-primary" id="ki-bericht-close">Schließen</button>`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.getElementById('ki-bericht-close')?.addEventListener('click', () => UI.modal.close());
|
||||||
document.getElementById('ki-bericht-copy')?.addEventListener('click', async () => {
|
document.getElementById('ki-bericht-copy')?.addEventListener('click', async () => {
|
||||||
try { await navigator.clipboard.writeText(text); UI.toast.success('Bericht kopiert.'); }
|
try { await navigator.clipboard.writeText(text); UI.toast.success('Bericht kopiert.'); }
|
||||||
catch { UI.toast.error('Kopieren nicht möglich.'); }
|
catch { UI.toast.error('Kopieren nicht möglich.'); }
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v506';
|
const CACHE_VERSION = 'by-v507';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue