Mercurial > repos > fubar > jbrowse2
comparison x/static/js/765.20669bca.chunk.js.map @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
124:137e08517410 | 125:49f3d3878413 |
---|---|
1 {"version":3,"file":"static/js/765.20669bca.chunk.js","mappings":"0NAUA,MAyDA,EAzD4BA,EAC1BC,kBACAC,UACAC,gBAMA,MAAOC,EAAOC,IAAYC,EAAAA,EAAAA,YAC1B,OACEC,EAAAA,cAACC,EAAAA,OAAM,CACLC,MAAI,EACJP,QAASA,KACPA,GAAQ,EAAM,EAEhBQ,MAAO,mBAAmBT,OAE1BM,EAAAA,cAACI,EAAAA,EAAa,KACXP,EAAQG,EAAAA,cAACK,EAAAA,aAAY,CAACR,MAAOA,IAAY,KAC1CG,EAAAA,cAACM,EAAAA,EAAiB,KAAC,iCAErBN,EAAAA,cAACO,EAAAA,EAAa,KACZP,EAAAA,cAACQ,EAAAA,EAAM,CACLC,QAASA,KACPd,GAAQ,EAAM,EAEhBe,MAAM,WACP,UAGDV,EAAAA,cAACQ,EAAAA,EAAM,CACLC,QAASA,KAEN,WACC,IACMf,GACFE,EAAUe,mBAAmB,CAAEC,KAAMlB,IAEvCC,GAAQ,EACV,CAAE,MAAOkB,GACPC,QAAQjB,MAAMgB,GACdf,EAASe,EACX,CACD,EAVA,EAUG,EAENH,MAAM,UACNK,QAAQ,YACRC,WAAS,GACV,WAII,C","sources":["components/DeleteSessionDialog.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport {\n Button,\n DialogActions,\n DialogContent,\n DialogContentText,\n} from '@mui/material'\nimport { Dialog, ErrorMessage } from '@jbrowse/core/ui'\nimport type { WebRootModel } from '../rootModel/rootModel'\n\nconst DeleteSessionDialog = ({\n sessionToDelete,\n onClose,\n rootModel,\n}: {\n sessionToDelete?: string\n onClose: (_arg0: boolean) => void\n rootModel: WebRootModel\n}) => {\n const [error, setError] = useState<unknown>()\n return (\n <Dialog\n open\n onClose={() => {\n onClose(false)\n }}\n title={`Delete session \"${sessionToDelete}\"?`}\n >\n <DialogContent>\n {error ? <ErrorMessage error={error} /> : null}\n <DialogContentText>This action cannot be undone</DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button\n onClick={() => {\n onClose(false)\n }}\n color=\"primary\"\n >\n Cancel\n </Button>\n <Button\n onClick={() => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n ;(async () => {\n try {\n if (sessionToDelete) {\n rootModel.removeSavedSession({ name: sessionToDelete })\n }\n onClose(true)\n } catch (e) {\n console.error(e)\n setError(e)\n }\n })()\n }}\n color=\"primary\"\n variant=\"contained\"\n autoFocus\n >\n Delete\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n\nexport default DeleteSessionDialog\n"],"names":["DeleteSessionDialog","sessionToDelete","onClose","rootModel","error","setError","useState","React","Dialog","open","title","DialogContent","ErrorMessage","DialogContentText","DialogActions","Button","onClick","color","removeSavedSession","name","e","console","variant","autoFocus"],"sourceRoot":""} |