mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{c as g,f as v,o as y,w as l,k as n,e as m,g as c,t as r,h as R}from"./runtime-dom.esm-bundler-DSTOTAEf.chunk.mjs";import{c as b}from"./index-D9L8KHF3.chunk.mjs";import{l as i,a as E}from"./index-xFugdZPW.chunk.mjs";import{t as p}from"./translation-DoG5ZELJ-2ffMJaM4.chunk.mjs";import{g as C}from"./createElementId-DhjFt1I9-Bjk2333q.chunk.mjs";import{N as S}from"./NcCheckboxRadioSwitch-BCSKF7Tk-BDM2s1GW.chunk.mjs";import{N as V}from"./ContentCopy-caJ7vqeg.chunk.mjs";import"./index-6_gsQFyp.chunk.mjs";import"./string_decoder-BO00msnV.chunk.mjs";import"./mdi-kAZc0JKn.chunk.mjs";const h=i("dav","userSyncCalendarsDocUrl","#"),k={name:"CalDavSettings",components:{NcCheckboxRadioSwitch:S,NcSettingsSection:V},setup(){return{t:p}},data(){return{userSyncCalendarsDocUrl:h,sendInvitations:i("dav","sendInvitations"),generateBirthdayCalendar:i("dav","generateBirthdayCalendar"),sendEventReminders:i("dav","sendEventReminders"),sendEventRemindersToSharedUsers:i("dav","sendEventRemindersToSharedUsers"),sendEventRemindersPush:i("dav","sendEventRemindersPush")}},computed:{hint(){return p("dav","Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.").replace("{calendarappstoreopen}",'<a target="_blank" href="../apps/office/calendar">').replace("{calendardocopen}",`<a target="_blank" href="${h}" rel="noreferrer noopener">`).replace(/\{linkclose\}/g,"</a>")},sendInvitationsHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")},sendEventRemindersHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")}},watch:{generateBirthdayCalendar(d){const e=d?"/apps/dav/enableBirthdayCalendar":"/apps/dav/disableBirthdayCalendar";b.post(C(e))},sendInvitations(d){OCP.AppConfig.setValue("dav","sendInvitations",d?"yes":"no")},sendEventReminders(d){OCP.AppConfig.setValue("dav","sendEventReminders",d?"yes":"no")},sendEventRemindersToSharedUsers(d){OCP.AppConfig.setValue("dav","sendEventRemindersToSharedUsers",d?"yes":"no")},sendEventRemindersPush(d){OCP.AppConfig.setValue("dav","sendEventRemindersPush",d?"yes":"no")}}},T=["innerHTML"],U=["innerHTML"],w=["innerHTML"],_={class:"indented"},P={class:"indented"};function H(d,e,x,t,a,u){const o=v("NcCheckboxRadioSwitch"),f=v("NcSettingsSection");return y(),g(f,{name:t.t("dav","Calendar server"),docUrl:a.userSyncCalendarsDocUrl},{default:l(()=>[n("p",{class:"settings-hint",innerHTML:u.hint},null,8,T),n("p",null,[m(o,{id:"caldavSendInvitations",modelValue:a.sendInvitations,"onUpdate:modelValue":e[0]||(e[0]=s=>a.sendInvitations=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send invitations to attendees")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendInvitationsHelpText},null,8,U)]),n("p",null,[m(o,{id:"caldavGenerateBirthdayCalendar",modelValue:a.generateBirthdayCalendar,"onUpdate:modelValue":e[1]||(e[1]=s=>a.generateBirthdayCalendar=s),type:"switch",class:"checkbox"},{default:l(()=>[c(r(t.t("dav","Automatically generate a birthday calendar")),1)]),_:1},8,["modelValue"]),n("em",null,r(t.t("dav","Birthday calendars will be generated by a background job.")),1),e[5]||(e[5]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Hence they will not be available immediately after enabling but will show up after some time.")),1)]),n("p",null,[m(o,{id:"caldavSendEventReminders",modelValue:a.sendEventReminders,"onUpdate:modelValue":e[2]||(e[2]=s=>a.sendEventReminders=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send notifications for events")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendEventRemindersHelpText},null,8,w),e[6]||(e[6]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Notifications are sent via background jobs, so these must occur often enough.")),1)]),n("p",_,[m(o,{id:"caldavSendEventRemindersToSharedGroupMembers",modelValue:a.sendEventRemindersToSharedUsers,"onUpdate:modelValue":e[3]||(e[3]=s=>a.sendEventRemindersToSharedUsers=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Send reminder notifications to calendar sharees as well")),1)]),_:1},8,["modelValue","disabled"]),n("em",null,r(t.t("dav","Reminders are always sent to organizers and attendees.")),1)]),n("p",P,[m(o,{id:"caldavSendEventRemindersPush",modelValue:a.sendEventRemindersPush,"onUpdate:modelValue":e[4]||(e[4]=s=>a.sendEventRemindersPush=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Enable notifications for events via push")),1)]),_:1},8,["modelValue","disabled"])])]),_:1},8,["name","docUrl"])}const I=E(k,[["render",H],["__scopeId","data-v-795da2a0"]]),B=R(I);B.mount("#settings-admin-caldav");
|
|
//# sourceMappingURL=dav-settings-admin-caldav.mjs.map
|