view x/static/js/741.a9772d36.chunk.js @ 133:cec274db51c0 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author fubar
date Fri, 18 Oct 2024 11:57:55 +0000
parents 49f3d3878413
children
line wrap: on
line source

"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[741],{60741:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var o=t(7552),l=t(89003),c=t(61723),r=t(29499),a=t(36715),i=t(58507),s=t(5401),m=t(49823),u=t(75785),d=t(68446),E=t(68584),b=t(30157);const C=(0,u.n9)()((e=>({connectionContainer:{margin:e.spacing(4),width:500}})));function h(){return o.createElement(l.A,{title:"Unable to delete connection in config file as non-admin user"},o.createElement(c.A,null,o.createElement(b.A,{color:"disabled"})))}const A=(0,d.observer)((function({session:e,handleClose:n,breakConnection:t}){const{classes:l}=C(),{adminMode:u,connections:d,sessionConnections:A}=e;return o.createElement(m.Dialog,{open:!0,onClose:n,maxWidth:"lg",title:"Delete connections"},o.createElement(r.A,null,o.createElement(a.A,null,"Click the X icon to delete the connection from your config completely"),o.createElement("div",{className:l.connectionContainer},d.map((e=>{const n=(0,E.readConfObject)(e,"name");return o.createElement(a.A,{key:`conn-${n}`},u||A?.includes(e)?o.createElement(c.A,{onClick:()=>{t(e,!0)}},o.createElement(b.A,{color:"error"})):o.createElement(h,null),n)})),d.length?null:o.createElement(a.A,null,"No connections found"))),o.createElement(i.A,null,o.createElement(s.A,{onClick:()=>{n()},variant:"contained",color:"primary"},"Close")))}))}}]);
//# sourceMappingURL=741.a9772d36.chunk.js.map