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`