#15-messages #22
1 changed files with 10 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue