introduce setting "allowAdHocMeetings" to show or hide Adhoc-Meetings button

This commit is contained in:
stefan.tollkuehn committed 2026-10-22 15:54:31 +02:00
1 parent 7939d384bc
commit c5f145a547
4 files changed
+23 -2

No files matched your search

+3 -1
View File
@@ -2,6 +2,7 @@
"jitsiLauncher": "meet.bnvb.eu",
"jitsiHost": "meet.bnvb-ingenieure.de",
"nextcloudBase": "https://cloud.bnvb-ingenieure.de",
"allowAdhocMeetings": true,
"launchTimeout": 2000,
"backgroundImage": "assets/images/background.png",
"logo": "assets/images/logo.svg",
@@ -11,5 +12,6 @@
"linux": "https://github.com/jitsi/jitsi-meet-electron/releases",
"ios": "https://apps.apple.com/app/jitsi-meet/id1165103905",
"android": "https://play.google.com/store/apps/details?id=org.jitsi.meet"
}
},
"allowAdhocMeetings": true
}
+18
View File
@@ -313,6 +313,23 @@ function applyNextcloudButton() {
createNextcloudButton.classList.remove("hidden");
}
/* ============================================================
* ADHOC BUTTON
* ============================================================
*/
/*
* Nur anzeigen, wenn explizit aktiviert
* (CONFIG.allowAdhocMeetings in assets/config.json).
*/
function applyAdhocButton() {
if (!CONFIG.allowAdhocMeetings || !createAdhocButton) {
return;
}
createAdhocButton.classList.remove("hidden");
}
/* ============================================================
* DOM elements
* ============================================================
@@ -1467,6 +1484,7 @@ async function start() {
applyBackgroundImage();
applyLogo();
applyNextcloudButton();
applyAdhocButton();
await loadTranslations();