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
@@ -296,6 +296,23 @@ function applyLogo() {
|
||||
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
|
||||
* ============================================================
|
||||
@@ -1449,6 +1466,7 @@ async function start() {
|
||||
|
||||
applyBackgroundImage();
|
||||
applyLogo();
|
||||
applyNextcloudButton();
|
||||
|
||||
await loadTranslations();
|
||||
|
||||
|
||||
Reference in new issue
Block a user