Fix: Kündigung-Anzeige auch ohne Ablaufdatum (SW by-v950)

This commit is contained in:
rene 2026-05-14 16:45:36 +02:00
parent 959fff4651
commit da4879b4c4
4 changed files with 10 additions and 4 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '949'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '950'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -110,7 +110,13 @@ window.Page_settings = (() => {
const isPaid = (isPro || isBreeder) && !tier.endsWith('_test') && !isAdmin;
const _expiryInfo = () => {
if (!isPaid || !expiresDate) return '';
if (!isPaid) return '';
if (cancelled && !expiresDate) {
return `<div style="font-size:var(--text-xs);color:#e65100;margin-top:var(--space-1)">
Gekündigt läuft bis Ablauf des bezahlten Zeitraums
</div>`;
}
if (!expiresDate) return '';
const color = cancelled ? '#e65100' : 'var(--c-text-secondary)';
const text = cancelled
? `Gekündigt — läuft bis ${expiresDate}`

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v949';
const CACHE_VERSION = 'by-v950';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache