diff --git a/README.md b/README.md
index 8c8a65f..f8d039c 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ up but links break if the file is missing or malformed.
| `jitsiLauncher` | Domain of this Jitsi launcher. Used for the meeting URLs created by the meeting creator (Nextcloud, adhoc link). |
| `jitsiHost` | Jitsi domain. Used for the browser fallback URL, the desktop protocol URL and the UID of generated ICS files. |
| `nextcloudBase` | Nextcloud instance for calendar event creation. The "Create in Nextcloud Calendar" button is only shown if this is set. |
+| `allowAdhocMeetings` | Whether adhoc meetings are allowed. The "Create Adhoc Link" button is only shown if this is `true`. |
| `launchTimeout` | Timeout in ms before the browser fallback is shown after trying to start the jitsi-meet-electron client. |
| `backgroundImage` | Path to the page background image. Empty: no background. |
| `logo` | Path to the logo shown in the logo bar. Empty: logo bar stays hidden. |
diff --git a/assets/config.json b/assets/config.json
index e9b3a3f..a6d8d1e 100644
--- a/assets/config.json
+++ b/assets/config.json
@@ -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
}
diff --git a/assets/launch.js b/assets/launch.js
index c02a055..8b817bb 100644
--- a/assets/launch.js
+++ b/assets/launch.js
@@ -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();
diff --git a/launch.html b/launch.html
index 9e6c2dd..86c1dc8 100644
--- a/launch.html
+++ b/launch.html
@@ -292,7 +292,7 @@
-