github.com/minio/console@v1.4.1/web-app/build/static/js/6799.61dee8ac.chunk.js (about)

     1  "use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6799],{96799:(e,a,l)=>{l.r(a),l.d(a,{default:()=>b});var t=l(65043),n=l(89923),s=l(56629),c=l(53518),i=l(77403),o=l(64159),r=l(20554),d=l(94141),u=l(70579);const b=e=>{let{modalOpen:a,onClose:l,bucket:b,toEdit:p,initial:h}=e;const x=(0,r.jL)(),[j,k]=(0,t.useState)(h);return(0,u.jsx)(t.Fragment,{children:(0,u.jsxs)(d.A,{modalOpen:a,title:"Edit Anonymous Access Rule for ".concat("".concat(b,"/").concat(p||"")),onClose:l,titleIcon:(0,u.jsx)(n.No_,{}),children:[(0,u.jsx)(n.Hbc,{containerPadding:!1,withBorders:!1,children:(0,u.jsx)(n.l6P,{id:"access",name:"Access",onChange:e=>{k(e)},label:"Access",value:j,options:[{label:"readonly",value:"readonly"},{label:"writeonly",value:"writeonly"},{label:"readwrite",value:"readwrite"}],disabled:!1})}),(0,u.jsxs)(n.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,u.jsx)(n.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{k(h)},label:"Clear"}),(0,u.jsx)(n.$nd,{id:"save",type:"submit",variant:"callAction",onClick:()=>{s.F.bucket.setAccessRuleWithBucket(b,{prefix:p,access:j}).then((()=>{l()})).catch((e=>{x((0,o.C9)((0,c.S)(e.error))),l()}))},label:"Save"})]})]})})}}}]);
     2  //# sourceMappingURL=6799.61dee8ac.chunk.js.map