Bugfixes im Dating und im Profil
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled
This commit is contained in:
@@ -367,6 +367,24 @@
|
||||
|
||||
<button class="full-width" id="saveBtn" onclick="saveProfile()">Profil speichern</button>
|
||||
|
||||
<div id="datingInfoSection" style="display:none;margin-top:1.5rem;">
|
||||
<div class="gallery-section-label">Dating</div>
|
||||
<div style="display:flex;flex-direction:column;gap:0.5rem;background:var(--color-secondary);border-radius:8px;padding:0.85rem 1rem;font-size:0.9rem;">
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;">
|
||||
<span style="color:var(--color-muted);min-width:90px;">Wohnort</span>
|
||||
<span id="datingInfoStadt" style="font-weight:600;">—</span>
|
||||
</div>
|
||||
<div style="display:flex;align-items:baseline;gap:0.5rem;">
|
||||
<span style="color:var(--color-muted);min-width:90px;">Suche nach</span>
|
||||
<div id="datingInfoGeschlechter" style="display:flex;flex-wrap:wrap;gap:0.35rem;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="/konto/einstellungen.html#sec-dating"
|
||||
style="display:inline-block;margin-top:0.5rem;font-size:0.8rem;color:var(--color-muted);">
|
||||
→ Dating-Einstellungen ändern
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="gallery-section-label" style="margin-top:1.5rem;">Vorlieben</div>
|
||||
<p class="vorlieben-hint">Wähle für jede Vorliebe aus, wie du dazu stehst. Nicht ausgefüllte Einträge werden nicht angezeigt.</p>
|
||||
<div id="vorliebenSection"><p style="color:var(--color-muted);font-size:0.85rem;">Wird geladen…</p></div>
|
||||
@@ -422,6 +440,15 @@
|
||||
updateCharCount();
|
||||
}
|
||||
myUserId = user.userId;
|
||||
if (user.datingAktiv) {
|
||||
document.getElementById('datingInfoSection').style.display = '';
|
||||
document.getElementById('datingInfoStadt').textContent = user.datingStadt || '—';
|
||||
const g = user.datingGeschlechter || [];
|
||||
const labels = { WEIBLICH: '♀ weiblich', MAENNLICH: '♂ männlich', DIVERS: '⚧ divers' };
|
||||
document.getElementById('datingInfoGeschlechter').innerHTML = g.length
|
||||
? g.map(v => `<span style="padding:0.15rem 0.55rem;border-radius:20px;background:var(--color-card);font-size:0.8rem;">${labels[v] || v}</span>`).join('')
|
||||
: '<span style="color:var(--color-muted);">—</span>';
|
||||
}
|
||||
loadOwnGallery();
|
||||
loadVorliebenEdit();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user