/
snap
/
lxd
/
current
/
share
/
lxd-ui
/
assets
/
File Upload :
llllll
Current File: //snap/lxd/current/share/lxd-ui/assets/CreateInstanceFromImageBtn-DvNc4DX6.js
import{c as i,am as p,j as a,d as o}from"./index-B3cgCbnJ.js";import{u as m}from"./projects-9DerJg4m.js";const l=({image:s,projectName:e})=>{const c=i(),{canCreateInstances:t}=m(),{data:n}=p(e),r=()=>{c(`/ui/project/${encodeURIComponent(e)}/instances/create`,{state:{selectedImage:s,cancelLocation:window.location.pathname}})};return a.jsx(o.Button,{appearance:"base",onClick:r,type:"button",title:t(n)?"Create instance":"You do not have permission to create instances",hasIcon:!0,disabled:!t(n),children:a.jsx(o.Icon,{name:"play"})})};export{l as C};
Copyright ©2k19 -
Hexid
|
Tex7ure