Berater-Popup: Kontaktieren im Titel ergänzen

feature/terminbuchung-kontaktfeld
Marvin Gemlin 2026-09-30 06:34:24 +00:00
parent b6ba795cf4
commit 92a9ee7c6c
1 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,10 @@ export function openContactDialog({
<p class="contact-status" role="status" aria-live="polite"></p> <p class="contact-status" role="status" aria-live="polite"></p>
<button class="contact-submit" type="submit" disabled>Anfrage senden & Termin wählen</button> <button class="contact-submit" type="submit" disabled>Anfrage senden & Termin wählen</button>
</form>`; </form>`;
dialog.querySelector("#contact-title").textContent = const advisorName = advisorDisplayName(advisor);
advisorDisplayName(advisor) || "Berater nicht gefunden"; dialog.querySelector("#contact-title").textContent = advisorName
? `${advisorName} kontaktieren`
: "Berater nicht gefunden";
dialog.querySelector(".contact-advisor").textContent = advisor dialog.querySelector(".contact-advisor").textContent = advisor
? "Sende deine Kontaktanfrage." ? "Sende deine Kontaktanfrage."
: "Die Berater-ID fehlt oder ist unbekannt. Bitte öffne das Fenster über ein Beraterprofil."; : "Die Berater-ID fehlt oder ist unbekannt. Bitte öffne das Fenster über ein Beraterprofil.";