You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/dist/settings-vue-settings-admin...

2 lines
6.8 KiB

(()=>{"use strict";var e,r,s,n={96079:(e,r,s)=>{var n=s(85471),a=s(67607),o=s(63814),i=s(65043),l=s(85168);const c=(0,s(35947).YK)().setApp("settings").detectUser().build(),u={name:"GroupSelect",components:{NcSelect:a.A},props:{availableGroups:{type:Array,default:()=>[]},setting:{type:Object,required:!0},authorizedGroups:{type:Array,required:!0}},data(){return{selected:this.authorizedGroups.filter((e=>e.class===this.setting.class)).map((e=>this.availableGroups.find((t=>t.gid===e.group_id)))).filter((e=>void 0!==e))}},watch:{selected(){this.saveGroups()}},methods:{async saveGroups(){const e={newGroups:this.selected,class:this.setting.class};try{await i.Ay.post((0,o.Jv)("/apps/settings/")+"/settings/authorizedgroups/saveSettings",e)}catch(e){(0,l.Qg)(t("settings","Unable to modify setting")),c.error("Unable to modify setting",e)}}}};var d=s(85072),p=s.n(d),g=s(97825),v=s.n(g),h=s(77659),f=s.n(h),b=s(55056),m=s.n(b),A=s(10540),y=s.n(A),C=s(41113),S=s.n(C),w=s(32387),k={};k.styleTagTransform=S(),k.setAttributes=m(),k.insert=f().bind(null,"head"),k.domAPI=v(),k.insertStyleElement=y(),p()(w.A,k),w.A&&w.A.locals&&w.A.locals;var O=s(14486);const G=(0,O.A)(u,(function(){var e=this;return(0,e._self._c)("NcSelect",{staticClass:"group-select",attrs:{"input-id":e.setting.id,placeholder:e.t("settings","None"),label:"displayName",options:e.availableGroups,multiple:!0,"close-on-select":!1},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})}),[],!1,null,null,null).exports;var x=s(88837),j=s(32981);const T={name:"AdminDelegating",components:{GroupSelect:G,NcSettingsSection:x.A},data:()=>({availableSettings:(0,j.C)("settings","available-settings"),availableGroups:(0,j.C)("settings","available-groups"),authorizedGroups:(0,j.C)("settings","authorized-groups"),authorizedSettingsDocLink:(0,j.C)("settings","authorized-settings-doc-link")})};var _=s(97770),N={};N.styleTagTransform=S(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=v(),N.insertStyleElement=y(),p()(_.A,N),_.A&&_.A.locals&&_.A.locals;const z=(0,O.A)(T,(function(){var e=this,t=e._self._c;return t("NcSettingsSection",{attrs:{name:e.t("settings","Administration privileges"),description:e.t("settings","Here you can decide which group can access certain sections of the administration settings."),"doc-url":e.authorizedSettingsDocLink}},[t("div",{staticClass:"setting-list"},e._l(e.availableSettings,(function(r){return t("div",{key:r.class},[t("label",{attrs:{for:r.id}},[e._v(e._s(r.sectionName))]),e._v(" "),t("GroupSelect",{attrs:{"available-groups":e.availableGroups,"authorized-groups":e.authorizedGroups,setting:r}})],1)})),0)])}),[],!1,null,"7d7cc3c4",null).exports;n.Ay.prototype.OC=OC,n.Ay.prototype.t=t,(new(n.Ay.extend(z))).$mount("#admin-right-sub-granting")},97770:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(71354),n=r.n(s),a=r(76314),o=r.n(a)()(n());o.push([e.id,"label[data-v-7d7cc3c4]{display:block;font-size:16px;margin:12px 0;color:var(--color-text-light)}","",{version:3,sources:["webpack://./apps/settings/src/components/AdminDelegating.vue"],names:[],mappings:"AACA,uBACC,aAAA,CACA,cAAA,CACA,aAAA,CACA,6BAAA",sourceRoot:""}]);const i=o},32387:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(71354),n=r.n(s),a=r(76314),o=r.n(a)()(n());o.push([e.id,".group-select{width:100%}","",{version:3,sources:["webpack://./apps/settings/src/components/AdminDelegation/GroupSelect.vue"],names:[],mappings:"AACA,cACC,UAAA",sourceRoot:""}]);const i=o}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,e=[],o.O=(t,r,s,n)=>{if(!r){var a=1/0;for(u=0;u<e.length;u++){r=e[u][0],s=e[u][1],n=e[u][2];for(var i=!0,l=0;l<r.length;l++)(!1&n||a>=n)&&Object.keys(o.O).every((e=>o.O[e](r[l])))?r.splice(l--,1):(i=!1,n<a&&(a=n));if(i){e.splice(u--,1);var c=s();void 0!==c&&(t=c)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[r,s,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&
//# sourceMappingURL=settings-vue-settings-admin-delegation.js.map?v=e07880f2b9fadcf6b603