Fix: Tier-Modal zeigt alle 6 Optionen, aktiver Tier markiert statt herausgefiltert (SW by-v735)
This commit is contained in:
parent
71f29dcce0
commit
98ac7fcb79
5 changed files with 9 additions and 8 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '734'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '735'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
|
||||
|
|
|
|||
|
|
@ -931,16 +931,17 @@ window.Page_admin = (() => {
|
|||
Aktuelle Stufe: <strong>${currentTier}</strong>
|
||||
</p>
|
||||
<div style="display:flex;flex-direction:column;gap:var(--space-2)">
|
||||
${tiers.filter(t => t !== currentTier).map(t => `
|
||||
<button class="btn btn-secondary adm-tier-choice" data-tier="${t}" form="">
|
||||
${tierLabels[t]}
|
||||
${tiers.map(t => `
|
||||
<button class="btn ${t === currentTier ? 'btn-primary' : 'btn-secondary'} adm-tier-choice"
|
||||
data-tier="${t}" form="" ${t === currentTier ? 'disabled' : ''}>
|
||||
${tierLabels[t]}${t === currentTier ? ' ✓' : ''}
|
||||
</button>
|
||||
`).join('')}
|
||||
</div>
|
||||
`,
|
||||
});
|
||||
|
||||
document.querySelectorAll('.adm-tier-choice').forEach(btn => {
|
||||
document.querySelectorAll('.adm-tier-choice:not([disabled])').forEach(btn => {
|
||||
btn.addEventListener('click', async () => {
|
||||
UI.modal.close();
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue