mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[191],{75578:function(e,n,t){var s=t(1413),r=t(72791),o=t(80184);n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function t(t){return(0,o.jsx)(r.Suspense,{fallback:n,children:(0,o.jsx)(e,(0,s.Z)({},t))})}return t}},60191:function(e,n,t){t.r(n);var s=t(93433),r=t(29439),o=t(1413),i=t(72791),l=t(57689),c=t(75952),a=t(11135),u=t(25787),d=t(61889),p=t(64554),h=t(40986),x=t(21639),f=t(23814),m=t(81207),j=t(92983),g=t(81806),Z=t(74794),v=t(59114),C=t(56087),b=t(38442),k=t(75578),y=t(45248),G=t(87995),A=t(25469),P=t(27454),S=t(47974),F=t(80184),w=(0,k.Z)(i.lazy((function(){return t.e(9031).then(t.bind(t,88896))}))),M=(0,k.Z)(i.lazy((function(){return t.e(9134).then(t.bind(t,39134))})));n.default=(0,u.Z)((function(e){return(0,a.Z)((0,o.Z)((0,o.Z)({tableBlock:(0,o.Z)((0,o.Z)({},f.VX.tableBlock),{},{marginTop:15})},f.OR),{},{searchField:(0,o.Z)((0,o.Z)({},f.qg.searchField),{},{maxWidth:380})},f.Bz))}))((function(e){var n=e.classes,t=(0,A.TL)(),o=(0,l.s0)(),a=(0,i.useState)(!1),u=(0,r.Z)(a,2),f=u[0],k=u[1],T=(0,i.useState)(!1),_=(0,r.Z)(T,2),D=_[0],I=_[1],O=(0,i.useState)([]),z=(0,r.Z)(O,2),B=z[0],K=z[1],N=(0,i.useState)(""),R=(0,r.Z)(N,2),X=R[0],E=R[1],L=(0,i.useState)(!1),U=(0,r.Z)(L,2),V=U[0],q=U[1],J=(0,i.useState)([]),W=(0,r.Z)(J,2),Y=W[0],H=W[1];(0,i.useEffect)((function(){I(!0)}),[]),(0,i.useEffect)((function(){I(!0)}),[]);var Q=(0,b.F)(C.C3,C.vh),$=(0,b.F)(C.C3,C.oX),ee=(0,b.F)(C.C3,C.k_),ne=(0,b.F)(C.C3,C.fC,!0);(0,i.useEffect)((function(){if(D)if(Q){m.Z.invoke("GET","/api/v1/groups").then((function(e){var n=[];null!==e.groups&&(n=e.groups.sort(x.V2)),K(n),I(!1)})).catch((function(e){t((0,G.Ih)(e)),I(!1)}))}else I(!1)}),[D,t,Q]);var te=B.filter((function(e){return e.includes(X)})),se=function(e){o("".concat(C.gA.GROUPS,"/").concat((0,y.LL)(e)))},re=[{type:"view",onClick:se,disableButtonFunction:function(){return!ee}},{type:"edit",onClick:se,disableButtonFunction:function(){return!ee}}];return(0,F.jsxs)(i.Fragment,{children:[f&&(0,F.jsx)(w,{deleteOpen:f,selectedGroups:Y,closeDeleteModalAndRefresh:function(e){k(!1),H([]),e&&I(!0)}}),V&&(0,F.jsx)(M,{open:V,selectedGroups:Y,selectedUser:null,closeModalAndRefresh:function(){q(!1)}}),(0,F.jsx)(S.Z,{label:"Groups"}),(0,F.jsxs)(Z.Z,{children:[(0,F.jsxs)(d.ZP,{item:!0,xs:12,className:n.actionsTray,children:[(0,F.jsx)(b.s,{resource:C.C3,scopes:C.vh,errorProps:{disabled:!0},children:(0,F.jsx)(v.Z,{placeholder:"Search Groups",onChange:E,overrideClass:n.searchField,value:X})}),(0,F.jsxs)(p.Z,{sx:{display:"flex"},children:[(0,F.jsx)(b.s,{resource:C.C3,scopes:C.fC,matchAll:!0,errorProps:{disabled:!0},children:(0,F.jsx)(P.Z,{tooltip:Y.length<1?"Please select Groups on which you want to apply Policies":ne?"Select Policy":(0,C.MK)(C.fC,"apply policies to Groups"),children:(0,F.jsx)(c.zxk,{id:"assign-policy",onClick:function(){q(!0)},label:"Assign Policy",icon:(0,F.jsx)(c.v42,{}),disabled:Y.length<1||!ne,variant:"regular"})})}),(0,F.jsx)(b.s,{resource:C.C3,scopes:C.oX,matchAll:!0,errorProps:{disabled:!0},children:(0,F.jsx)(P.Z,{tooltip:0===Y.length?"Select Groups to delete":ee?"Delete Selected":(0,C.MK)(C.k_,"delete Groups"),children:(0,F.jsx)(c.zxk,{id:"delete-selected-groups",onClick:function(){k(!0)},label:"Delete Selected",icon:(0,F.jsx)(c.pJl,{}),variant:"secondary",disabled:0===Y.length||!ee})})}),(0,F.jsx)(b.s,{resource:C.C3,scopes:C.vN,matchAll:!0,errorProps:{disabled:!0},children:(0,F.jsx)(P.Z,{tooltip:"Create Group",children:(0,F.jsx)(c.zxk,{id:"create-group",label:"Create Group",variant:"callAction",icon:(0,F.jsx)(c.dtP,{}),onClick:function(){o("".concat(C.gA.GROUPS_ADD))}})})})]})]}),D&&(0,F.jsx)(h.Z,{}),!D&&(0,F.jsxs)(i.Fragment,{children:[B.length>0&&(0,F.jsxs)(i.Fragment,{children:[(0,F.jsx)(P.Z,{tooltip:ee?"":(0,C.MK)(C.k_,"view Group details"),children:(0,F.jsx)(d.ZP,{item:!0,xs:12,className:n.tableBlock,children:(0,F.jsx)(b.s,{resource:C.C3,scopes:C.vh,errorProps:{disabled:!0},children:(0,F.jsx)(j.Z,{itemActions:re,columns:[{label:"Name",elementKey:""}],isLoading:D,selectedItems:Y,onSelect:$||ee?function(e){var n=e.target,t=void 0===n?{}:n,r=t.value,o=void 0===r?"":r,i=t.checked,l=void 0!==i&&i,c=(0,s.Z)(Y);return l?c.push(o):c=c.filter((function(e){return e!==o})),H(c),c}:void 0,records:te,entityName:"Groups",idField:""})})})}),(0,F.jsx)(d.ZP,{item:!0,xs:12,marginTop:"25px",children:(0,F.jsx)(c.KfX,{title:"Groups",iconComponent:(0,F.jsx)(c.wws,{}),help:(0,F.jsxs)(i.Fragment,{children:["A group can have one attached IAM policy, where all users with membership in that group inherit that policy. Groups support more simplified management of user permissions on the MinIO Tenant.",(0,F.jsx)("br",{}),(0,F.jsx)("br",{}),"You can learn more at our"," ",(0,F.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/identity-access-management/minio-group-management.html?ref=con",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})})]}),0===B.length&&(0,F.jsx)(d.ZP,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:(0,F.jsx)(d.ZP,{item:!0,xs:8,children:(0,F.jsx)(c.KfX,{title:"Groups",iconComponent:(0,F.jsx)(c.oyc,{}),help:(0,F.jsxs)(i.Fragment,{children:["A group can have one attached IAM policy, where all users with membership in that group inherit that policy. Groups support more simplified management of user permissions on the MinIO Tenant.",(0,F.jsxs)(b.s,{resource:C.C3,scopes:C.vN,matchAll:!0,children:[(0,F.jsx)("br",{}),(0,F.jsx)("br",{}),"To get started,"," ",(0,F.jsx)(g.Z,{onClick:function(){o("".concat(C.gA.GROUPS_ADD))},children:"Create a Group"}),"."]})]})})})})]})]})]})}))}}]);
|
|
//# sourceMappingURL=191.35112ad5.chunk.js.map
|