#15-messages #22

Merged
jkeffects merged 19 commits from #15-messages into main 2024-12-31 13:25:27 +00:00
Showing only changes of commit 368169f80f - Show all commits

View file

@ -72,6 +72,14 @@
</p>
<br />
<TextCopy :copyText="generatedLink" />
<div v-if="selectedTypes.length != 0" class="flex flex-row gap-2 items-center">
<input
type="checkbox"
id="nscdr"
v-model="provideNSCDR"
/>
<label for="nscdr">Standard-Typen trotz Auswahl ausliefern</label>
</div>
<br />
</div>
@ -111,6 +119,7 @@ export default defineComponent({
data() {
return {
selectedTypes: [] as Array<CalendarTypeViewModel>,
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() {