Clear href when no calendars selected

This commit is contained in:
Asaf Gartner 2024-01-28 19:52:49 +02:00
parent 79dcef9b7f
commit 845a2d377c
1 changed files with 3 additions and 0 deletions

View File

@ -63,8 +63,11 @@
} }
} }
icalLink.disabled = false;
if (hasAll) { if (hasAll) {
icalLink.href = baseICalUrl; icalLink.href = baseICalUrl;
} else if (icalFilter.length == 0) {
icalLink.removeAttribute("href");
} else { } else {
icalFilter.sort(); icalFilter.sort();
let url = new URL(baseICalUrl); let url = new URL(baseICalUrl);