From 368169f80fe0d08a20dd7522fe9ef15cd931617d Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Tue, 24 Dec 2024 14:06:42 +0100 Subject: [PATCH] extend calendar link --- .../admin/club/calendar/CalendarLinkModal.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/admin/club/calendar/CalendarLinkModal.vue b/src/components/admin/club/calendar/CalendarLinkModal.vue index 12d43ab..5c16641 100644 --- a/src/components/admin/club/calendar/CalendarLinkModal.vue +++ b/src/components/admin/club/calendar/CalendarLinkModal.vue @@ -72,6 +72,14 @@


+
+ + +

@@ -111,6 +119,7 @@ export default defineComponent({ data() { return { selectedTypes: [] as Array, + provideNSCDR: false as boolean }; }, computed: { @@ -124,7 +133,7 @@ export default defineComponent({ }, generatedLink() { let extend = this.selectedTypes.map((t) => [t.type, t.passphrase].filter((at) => at).join(":")); - return `webcal://${host || window.location.host}/api/public/calendar${extend.length == 0 ? "" : "?types=" + extend.join("&types=")}`; + return `webcal://${host || window.location.host}/api/public/calendar${extend.length == 0 ? "" : "?types=" + extend.join("&types=")}${this.provideNSCDR && extend.length != 0 ? '&nscdr=true':''}`; }, }, mounted() {