mirror of
https://github.com/nextcloud/server.git
synced 2026-11-02 20:11:47 +01:00
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 lines
2.8 KiB
JavaScript
3 lines
2.8 KiB
JavaScript
import{j as m,o as u,k as b,w as i,p as n,z as l,t as d,a as f}from"./PencilOutline-C4ZkKkas.chunk.mjs";import{c as w}from"./index-DHyMMYTN.chunk.mjs";import{b as g}from"./index-UXL_i2di.chunk.mjs";import{c as S,d as I,l as c}from"./star-outline-BpDZzOb8.chunk.mjs";import{t as h}from"./translations-pLZlvQeM.chunk.mjs";import{c as k}from"./index-BMlZKoNj.chunk.mjs";import{N as M}from"./NcCheckboxRadioSwitch-BgZXg73g.chunk.mjs";import{N}from"./NcSettingsSection-DeN6Lle1.chunk.mjs";import{g as R}from"./livePhotoUtils-CVUhgL4S.chunk.mjs";import"./index-D6fZh9CR.chunk.mjs";import"./AlertCircleOutline-jA3ki2Uu.chunk.mjs";import"./TrayArrowDown-vMg8Cl05.chunk.mjs";import"./Web-BMG0zIln.chunk.mjs";import"./_l10n-CK24vgHE.chunk.mjs";import"./File-xDTWu8L0.chunk.mjs";import"./Link-CUdpEe-t.chunk.mjs";import"./formatRelative-uuSCBZ1C.chunk.mjs";import"./ArrowRight-COu6qSN5.chunk.mjs";import"./Check-CEU1oy_I.chunk.mjs";import"./NcModal-BxLzaUZK.chunk.mjs";import"./MapMarkerOutline-Ip3bQdll.chunk.mjs";import"./cancel-DDzvQ-HX.chunk.mjs";import"./NcPasswordField-DgVaELPd.chunk.mjs";import"./NcInputField-wKF2DDSn.chunk.mjs";const T=R().detectLogLevel().setApp("sharebymail").build(),V={name:"AdminSettings",components:{NcCheckboxRadioSwitch:M,NcSettingsSection:N},setup(){return{t:h}},data(){return{sendPasswordMail:c("sharebymail","sendPasswordMail"),replyToInitiator:c("sharebymail","replyToInitiator")}},watch:{sendPasswordMail(o){this.update("sendpasswordmail",o)},replyToInitiator(o){this.update("replyToInitiator",o)}},methods:{async update(o,a){await k();const r=I("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:o}),t=a?"yes":"no";try{const{data:e}=await w.post(r,{value:t});this.handleResponse({status:e.ocs?.meta?.status})}catch(e){this.handleResponse({errorMessage:h("sharebymail","Unable to update share by mail config"),error:e})}},async handleResponse({status:o,errorMessage:a,error:r}){o!=="ok"&&(g(a),T.error(a,{error:r}))}}};function v(o,a,r,t,e,x){const p=m("NcCheckboxRadioSwitch"),y=m("NcSettingsSection");return u(),b(y,{name:t.t("sharebymail","Share by mail"),description:t.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")},{default:i(()=>[n(p,{modelValue:e.sendPasswordMail,"onUpdate:modelValue":a[0]||(a[0]=s=>e.sendPasswordMail=s),type:"switch"},{default:i(()=>[l(d(t.t("sharebymail","Send password by mail")),1)]),_:1},8,["modelValue"]),n(p,{modelValue:e.replyToInitiator,"onUpdate:modelValue":a[1]||(a[1]=s=>e.replyToInitiator=s),type:"switch"},{default:i(()=>[l(d(t.t("sharebymail","Reply to initiator")),1)]),_:1},8,["modelValue"])]),_:1},8,["name","description"])}const P=S(V,[["render",v]]),_=f(P);_.mount("#vue-admin-sharebymail");
|
|
//# sourceMappingURL=sharebymail-admin-settings.mjs.map
|