display "Create in Nextcloud Calendar" button only if nextcloudBase is set in config.json
This commit is contained in:
1 parent
e9ad3882d2
commit
7939d384bc
3 files changed
+20
-2
No files matched your search
@@ -11,7 +11,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 used by the "Create in Nextcloud" button (calendar event creation). |
|
| `nextcloudBase` | Nextcloud instance for calendar event creation. The "Create in Nextcloud Calendar" button is only shown if this is set. |
|
||||||
| `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. |
|
||||||
|
|||||||
@@ -296,6 +296,23 @@ function applyLogo() {
|
|||||||
logoBar.classList.remove("hidden");
|
logoBar.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
* NEXTCLOUD BUTTON
|
||||||
|
* ============================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Nur anzeigen, wenn eine Nextcloud-Instanz konfiguriert
|
||||||
|
* ist (CONFIG.nextcloudBase in assets/config.json).
|
||||||
|
*/
|
||||||
|
function applyNextcloudButton() {
|
||||||
|
if (!CONFIG.nextcloudBase || !createNextcloudButton) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
createNextcloudButton.classList.remove("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* DOM elements
|
* DOM elements
|
||||||
* ============================================================
|
* ============================================================
|
||||||
@@ -1449,6 +1466,7 @@ async function start() {
|
|||||||
|
|
||||||
applyBackgroundImage();
|
applyBackgroundImage();
|
||||||
applyLogo();
|
applyLogo();
|
||||||
|
applyNextcloudButton();
|
||||||
|
|
||||||
await loadTranslations();
|
await loadTranslations();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -289,7 +289,7 @@
|
|||||||
<button id="createMeetingButton" class="button primary" type="button" data-i18n="creator.createButton">
|
<button id="createMeetingButton" class="button primary" type="button" data-i18n="creator.createButton">
|
||||||
Create Meeting
|
Create Meeting
|
||||||
</button>
|
</button>
|
||||||
<button id="createNextcloudButton" class="button primary" 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" type="button" data-i18n="creator.adhocButton">
|
||||||
|
|||||||
Reference in new issue
Block a user