UX: Kündigung-Toast zeigt Ablaufdatum (SW by-v949)
This commit is contained in:
parent
b3f1c6bdf3
commit
959fff4651
4 changed files with 14 additions and 4 deletions
|
|
@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request):
|
||||||
raise _HE(404, "Nicht gefunden.")
|
raise _HE(404, "Nicht gefunden.")
|
||||||
return _media_response(filepath)
|
return _media_response(filepath)
|
||||||
|
|
||||||
APP_VER = "948" # muss mit APP_VER in app.js übereinstimmen
|
APP_VER = "949" # muss mit APP_VER in app.js übereinstimmen
|
||||||
|
|
||||||
@app.get("/.well-known/assetlinks.json")
|
@app.get("/.well-known/assetlinks.json")
|
||||||
async def assetlinks():
|
async def assetlinks():
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
Router, State-Management, Navigation, Initialisierung.
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const APP_VER = '948'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '949'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||||
|
|
|
||||||
|
|
@ -422,7 +422,17 @@ window.Page_settings = (() => {
|
||||||
const fresh = await API.auth.me();
|
const fresh = await API.auth.me();
|
||||||
Object.assign(_appState.user, fresh);
|
Object.assign(_appState.user, fresh);
|
||||||
UI.modal.close();
|
UI.modal.close();
|
||||||
UI.toast.success('Kündigung bestätigt. Eine Bestätigungsmail wurde gesendet.');
|
const tier = fresh.subscription_tier || '';
|
||||||
|
const label = { pro: 'Pro', breeder: 'Züchter' }[tier] || tier;
|
||||||
|
const exp = fresh.subscription_expires_at;
|
||||||
|
const expFmt = exp
|
||||||
|
? new Date(exp).toLocaleDateString('de-DE', {day:'numeric',month:'long',year:'numeric'})
|
||||||
|
: null;
|
||||||
|
UI.toast.success(
|
||||||
|
expFmt
|
||||||
|
? `Kündigung bestätigt — ${label} läuft noch bis ${expFmt}.`
|
||||||
|
: 'Kündigung bestätigt. Eine Bestätigungsmail wurde gesendet.'
|
||||||
|
);
|
||||||
_render();
|
_render();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v948';
|
const CACHE_VERSION = 'by-v949';
|
||||||
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
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue