Fix: KI-Notiz-Assistent Toggle nur für Pro-Nutzer sichtbar (SW by-v927)
This commit is contained in:
parent
3b37c14600
commit
2a3afa0604
4 changed files with 14 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '926'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '927'; // ← 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
|
||||
|
|
|
|||
|
|
@ -613,7 +613,15 @@ window.Page_settings = (() => {
|
|||
• Vollbild: <em>Einstellungen → Display → Navigationsleiste → Wischgesten</em> aktivieren.
|
||||
</div>` : ''}
|
||||
|
||||
<!-- KI-Notiz-Assistent -->
|
||||
<!-- KI-Notiz-Assistent (nur Pro) -->
|
||||
${(() => {
|
||||
const tier = u.subscription_tier || 'standard';
|
||||
const hasPro = ['pro','breeder'].includes(tier) ||
|
||||
u.rolle === 'admin' || u.rolle === 'moderator' ||
|
||||
u.is_moderator || u.is_social_media ||
|
||||
tier.endsWith('_test');
|
||||
if (!hasPro) return '';
|
||||
return `
|
||||
<div class="settings-toggle-row">
|
||||
<svg class="ph-icon" aria-hidden="true" style="width:1.25rem;height:1.25rem"><use href="/icons/phosphor.svg#brain"></use></svg>
|
||||
<div class="settings-toggle-label">
|
||||
|
|
@ -635,7 +643,8 @@ window.Page_settings = (() => {
|
|||
background:#fff;transition:.2s;
|
||||
box-shadow:0 1px 3px rgba(0,0,0,.3)"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>`;
|
||||
})()}
|
||||
|
||||
<!-- Goldene Gassi-Stunde -->
|
||||
<div class="settings-toggle-row" style="border-bottom:none">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v926';
|
||||
const CACHE_VERSION = 'by-v927';
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue