introduce setting "allowAdHocMeetings" to show or hide Adhoc-Meetings button
This commit is contained in:
1 parent
7939d384bc
commit
c5f145a547
4 files changed
+23
-2
No files matched your search
@@ -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). |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `logo` | Path to the logo shown in the logo bar. Empty: logo bar stays hidden. |
|
||||||
|
|||||||
+3
-1
@@ -2,6 +2,7 @@
|
|||||||
"jitsiLauncher": "meet.bnvb.eu",
|
"jitsiLauncher": "meet.bnvb.eu",
|
||||||
"jitsiHost": "meet.bnvb-ingenieure.de",
|
"jitsiHost": "meet.bnvb-ingenieure.de",
|
||||||
"nextcloudBase": "https://cloud.bnvb-ingenieure.de",
|
"nextcloudBase": "https://cloud.bnvb-ingenieure.de",
|
||||||
|
"allowAdhocMeetings": true,
|
||||||
"launchTimeout": 2000,
|
"launchTimeout": 2000,
|
||||||
"backgroundImage": "assets/images/background.png",
|
"backgroundImage": "assets/images/background.png",
|
||||||
"logo": "assets/images/logo.svg",
|
"logo": "assets/images/logo.svg",
|
||||||
@@ -11,5 +12,6 @@
|
|||||||
"linux": "https://github.com/jitsi/jitsi-meet-electron/releases",
|
"linux": "https://github.com/jitsi/jitsi-meet-electron/releases",
|
||||||
"ios": "https://apps.apple.com/app/jitsi-meet/id1165103905",
|
"ios": "https://apps.apple.com/app/jitsi-meet/id1165103905",
|
||||||
"android": "https://play.google.com/store/apps/details?id=org.jitsi.meet"
|
"android": "https://play.google.com/store/apps/details?id=org.jitsi.meet"
|
||||||
}
|
},
|
||||||
|
"allowAdhocMeetings": true
|
||||||
}
|
}
|
||||||
@@ -313,6 +313,23 @@ function applyNextcloudButton() {
|
|||||||
createNextcloudButton.classList.remove("hidden");
|
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
|
* DOM elements
|
||||||
* ============================================================
|
* ============================================================
|
||||||
@@ -1467,6 +1484,7 @@ async function start() {
|
|||||||
applyBackgroundImage();
|
applyBackgroundImage();
|
||||||
applyLogo();
|
applyLogo();
|
||||||
applyNextcloudButton();
|
applyNextcloudButton();
|
||||||
|
applyAdhocButton();
|
||||||
|
|
||||||
await loadTranslations();
|
await loadTranslations();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -292,7 +292,7 @@
|
|||||||
<button id="createNextcloudButton" class="button primary hidden" type="button" data-i18n="creator.nextcloudButton">
|
<button id="createNextcloudButton" class="button primary hidden" type="button" data-i18n="creator.nextcloudButton">
|
||||||
Create in Nextcloud Calendar
|
Create in Nextcloud Calendar
|
||||||
</button>
|
</button>
|
||||||
<button id="createAdhocButton" class="button secondary" type="button" data-i18n="creator.adhocButton">
|
<button id="createAdhocButton" class="button secondary hidden" type="button" data-i18n="creator.adhocButton">
|
||||||
Create Adhoc Link
|
Create Adhoc Link
|
||||||
</button>
|
</button>
|
||||||
<button id="cancelCreateButton" class="button secondary" type="button" data-i18n="creator.cancelButton">
|
<button id="cancelCreateButton" class="button secondary" type="button" data-i18n="creator.cancelButton">
|
||||||
|
|||||||
Reference in new issue
Block a user