/
snap
/
lxd
/
current
/
share
/
lxd-ui
/
assets
/
File Upload :
llllll
Current File: //snap/lxd/current/share/lxd-ui/assets/BulkDeleteButton-DzyTAjHk.js
import{j as n,ah as a,d as c,t as f}from"./index-dL2n30-Z.js";const N=({entities:s,deletableEntities:h,disabledReason:i,entityType:t,bulkDeleteBreakdown:e,confirmationButtonProps:d,onDelete:m,buttonLabel:x="Delete",className:j,modalContentPrefix:p})=>{const u=s.length,l=h.length,o=(e==null?void 0:e.map(r=>n.jsxs("li",{className:"p-list__item",children:["- ",r]},r)))||[],g=n.jsxs(n.Fragment,{children:[p,o.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs("p",{children:[n.jsx("b",{children:u})," ",a(t,s.length)," ","selected:"]}),n.jsx("ul",{className:"p-list",children:o})]}),n.jsxs("p",{className:o.length>0?"u-no-padding--top":"",children:["This will permanently delete"," ",n.jsxs("strong",{children:[l," ",a(t,l)]}),".",` `,"This action cannot be undone, and can result in data loss."]})]});return n.jsxs(c.ConfirmationButton,{className:f("has-icon",j),onHoverText:i??`Delete ${a(t,s.length)}`,disabled:l===0||!!i,shiftClickEnabled:!0,showShiftClickHint:!0,...d,confirmationModalProps:{title:"Confirm delete",children:g,confirmButtonLabel:"Delete",onConfirm:m},children:[n.jsx(c.Icon,{name:"delete"}),n.jsx("span",{children:x})]})};export{N as B};
Copyright ©2k19 -
Hexid
|
Tex7ure