From d8803a38a22d232c0f52108459759bdfb6a95b3e Mon Sep 17 00:00:00 2001
From: Lennart <18233294+lennart-k@users.noreply.github.com>
Date: Sat, 5 Jul 2025 09:10:26 +0200
Subject: [PATCH] frontend: create-calendar-form put subscription url behind
checkbox
---
.../js-components/lib/create-calendar-form.ts | 17 ++++++++++++++---
.../public/assets/js/create-calendar-form.mjs | 19 ++++++++++++++++---
2 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/crates/frontend/js-components/lib/create-calendar-form.ts b/crates/frontend/js-components/lib/create-calendar-form.ts
index 17b7e41..c1fd0e7 100644
--- a/crates/frontend/js-components/lib/create-calendar-form.ts
+++ b/crates/frontend/js-components/lib/create-calendar-form.ts
@@ -28,6 +28,8 @@ export class CreateCalendarForm extends LitElement {
@property()
color: String = ''
@property()
+ isSubscription: boolean = false
+ @property()
subscriptionUrl: String = ''
@property()
components: Set<"VEVENT" | "VTODO" | "VJOURNAL"> = new Set()
@@ -67,11 +69,20 @@ export class CreateCalendarForm extends LitElement {
this.color = e.target.value} />
+
+ ${this.isSubscription ? html`
+
+
+ `: html``}
+
${["VEVENT", "VTODO", "VJOURNAL"].map(comp => html`
+
+ ${this.isSubscription ? x`
+
+
+ ` : x``}
+
${["VEVENT", "VTODO", "VJOURNAL"].map((comp) => x`