%PDF- %PDF-
Direktori : /snap/lxd/current/share/lxd-ui/assets/ |
Current File : //snap/lxd/current/share/lxd-ui/assets/StorageVolumeFormMenu-e90b9f5c.js |
import{d as c,r,A as g,j as e}from"./index-13b2882d.js";import{F as n}from"./FormMenuItem-c8a1a121.js";import{u as h}from"./updateMaxHeight-325b3cd4.js";const j="Main configuration",N="Snapshots",S="Filesystem",b="ZFS",E=({active:m,setActive:d,formik:u,poolDriver:i,contentType:p,isCreating:v})=>{var l;const f=c.useNotify(),[t,x]=r.useState(!v),a={active:m,setActive:d},s=u.values.name.length>0?void 0:"Please enter a volume name to enable this section",o=()=>{h("form-navigation","p-bottom-controls")};return r.useEffect(o,[(l=f.notification)==null?void 0:l.message]),g("resize",o),e.jsx("div",{className:"p-side-navigation--accordion form-navigation",children:e.jsx("nav",{"aria-label":"Storage volume form navigation",children:e.jsxs("ul",{className:"p-side-navigation__list",children:[e.jsx(n,{label:j,...a}),e.jsxs("li",{className:"p-side-navigation__item",children:[e.jsx(c.Button,{type:"button",className:"p-side-navigation__accordion-button","aria-expanded":t?"true":"false",onClick:()=>x(!t),disabled:!!s,title:s,children:"Advanced"}),e.jsxs("ul",{className:"p-side-navigation__list","aria-expanded":t?"true":"false",children:[e.jsx(n,{label:N,...a,disableReason:s}),p==="filesystem"&&["zfs","lvm","ceph"].includes(i)&&e.jsx(n,{label:S,...a,disableReason:s}),i==="zfs"&&e.jsx(n,{label:b,...a,disableReason:s})]})]})]})})})};export{S as F,j as M,E as S,b as Z,N as a};