芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/adminpanel/js/7019.4f0fe91d.js
"use strict";(globalThis["webpackChunkadmin_panel_vue_webclient"]=globalThis["webpackChunkadmin_panel_vue_webclient"]||[]).push([[7019],{7019:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var a=s(9835),n=s(6970);const r={class:"q-pa-lg"},l={class:"row q-mb-md"},o={class:"col text-h5"},i={class:"row"},d={class:"col-2 q-my-sm"},u={class:"col-5"},c={class:"q-pt-md text-right"};function E(e,t,s,E,m,S){const h=(0,a.up)("q-input"),p=(0,a.up)("q-card-section"),v=(0,a.up)("q-card"),_=(0,a.up)("q-btn"),g=(0,a.up)("q-linear-progress"),N=(0,a.up)("q-inner-loading"),f=(0,a.up)("q-scroll-area"),C=(0,a.Q2)("t");return(0,a.wg)(),(0,a.j4)(f,{class:"full-height full-width"},{default:(0,a.w5)((()=>[(0,a._)("div",r,[(0,a._)("div",l,[(0,a._)("div",o,(0,n.zw)(e.$t("MOBILESYNCWEBCLIENT.HEADING_SETTINGS_TAB")),1)]),(0,a.Wm)(v,{flat:"",bordered:"",class:"card-edit-settings"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,null,{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a.wy)((0,a._)("div",d,null,512),[[C,"MOBILESYNCWEBCLIENT.LABEL_DAV_SERVER"]]),(0,a._)("div",u,[(0,a.Wm)(h,{outlined:"",dense:"","bg-color":"white",modelValue:m.externalHostNameOfDAVServer,"onUpdate:modelValue":t[0]||(t[0]=e=>m.externalHostNameOfDAVServer=e)},null,8,["modelValue"])])])])),_:1})])),_:1}),(0,a._)("div",c,[(0,a.Wm)(_,{unelevated:"","no-caps":"",dense:"",class:"q-px-sm",ripple:!1,color:"primary",onClick:S.save,label:e.$t("COREWEBCLIENT.ACTION_SAVE")},null,8,["onClick","label"])])]),(0,a.Wm)(N,{style:{"justify-content":"flex-start"},showing:m.saving},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{query:""})])),_:1},8,["showing"])])),_:1})}var m=s(1427),S=s(9336),h=s(2456),p=s(8797);const v={name:"MobileSyncAdminSettings",data(){return{saving:!1,externalHostNameOfDAVServer:""}},mounted(){this.populate()},beforeRouteLeave(e,t,s){this.$root.doBeforeRouteLeave(e,t,s)},methods:{hasChanges(){const e=p.Z.getMobileSyncSettings();return this.externalHostNameOfDAVServer!==e.ExternalHostNameOfDAVServer},revertChanges(){this.populate()},populate(){const e=p.Z.getMobileSyncSettings();this.externalHostNameOfDAVServer=e.ExternalHostNameOfDAVServer},save(){if(!this.saving){this.saving=!0;const e={ExternalHostNameOfDAVServer:this.externalHostNameOfDAVServer};h.Z.sendRequest({moduleName:"Dav",methodName:"UpdateSettings",parameters:e}).then((t=>{this.saving=!1,!0===t?(p.Z.saveMobileSyncSettings(e),this.populate(),m.Z.showReport(this.$t("COREWEBCLIENT.REPORT_SETTINGS_UPDATE_SUCCESS"))):m.Z.showError(this.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED"))}),(e=>{this.saving=!1,m.Z.showError(S.Z.getTextFromResponse(e,this.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED")))}))}}}};var _=s(1639),g=s(6663),N=s(4458),f=s(3190),C=s(6611),A=s(8879),T=s(854),w=s(8289),I=s(9984),O=s.n(I);const R=(0,_.Z)(v,[["render",E]]),b=R;O()(v,"components",{QScrollArea:g.Z,QCard:N.Z,QCardSection:f.Z,QInput:C.Z,QBtn:A.Z,QInnerLoading:T.Z,QLinearProgress:w.Z})}}]);