display "Create in Nextcloud Calendar" button only if nextcloudBase is set in config.json

This commit is contained in:
stefan.tollkuehn committed 2026-10-22 15:51:01 +02:00
1 parent e9ad3882d2
commit 7939d384bc
3 files changed
+20 -2

No files matched your search

+18
View File
@@ -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();