mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
892 B
JavaScript
2 lines
892 B
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2763],{22763:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var a=n(72791),s=n(9505),o=n(23508),r=n(29945),l=n(87995),c=n(44690),i=n(80184);const u=e=>{let{deleteOpen:t,currentTags:n,selectedTag:u,onCloseAndUpdate:d,bucketName:p}=e;const h=(0,c.TL)(),[g,f]=u,[k,m]=(0,s.Z)((()=>d(!0)),(e=>h((0,l.Ih)(e))));if(!u)return null;return(0,i.jsx)(o.Z,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,i.jsx)(r.NvT,{}),isLoading:k,onConfirm:()=>{const e={...n};delete e[g],m("PUT","/api/v1/buckets/".concat(p,"/tags"),{tags:e})},onClose:()=>d(!1),confirmationContent:(0,i.jsxs)(a.Fragment,{children:["Are you sure you want to delete the tag"," ",(0,i.jsxs)("b",{style:{maxWidth:200,whiteSpace:"normal",wordWrap:"break-word"},children:[g," : ",f]})," ","?"]})})}}}]);
|
|
//# sourceMappingURL=2763.ddc89d17.chunk.js.map
|