comparison x/static/js/1811.7cfd8419.chunk.js.map @ 127:fbabf7498471 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 116b1a4bbd62251ad552306df2dc8aa8f46c6721
author fubar
date Mon, 07 Oct 2024 02:11:55 +0000
parents 49f3d3878413
children
comparison
equal deleted inserted replaced
126:fd0fc6fdc7c5 127:fbabf7498471
1 {"version":3,"file":"static/js/1811.7cfd8419.chunk.js","mappings":"qOAQA,MAwDA,GAxD8BA,EAAAA,EAAAA,WAAS,UAAU,QAC/CC,EAAO,MACPC,IAKA,MAAM,kBAAEC,GAAsBD,EACxBE,EAAyC,IAA7BD,EAAkBE,OAEpC,OACEC,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACP,QAASA,EAASQ,MAAM,oBACnCH,EAAAA,cAACI,EAAAA,EAAa,KACZJ,EAAAA,cAACK,EAAAA,EAAK,CAACC,SAAS,WACbR,EACCE,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,YAAM,kCACNA,EAAAA,cAAA,WACAA,EAAAA,cAAA,YAAM,iEAKR,6CAINA,EAAAA,cAACO,EAAAA,EAAa,KACZP,EAAAA,cAACQ,EAAAA,EAAM,CACLC,QAAQ,YACRC,MAAM,YACNC,QAASA,KACPhB,GAAS,GAEZ,UAGDK,EAAAA,cAACQ,EAAAA,EAAM,CACLC,QAAQ,YACRC,MAAM,UACNC,QAASA,KACHb,GACFF,EAAMgB,oBAGRhB,EAAMiB,yBACNlB,GAAS,GAEZ,YAMT,G","sources":["../../../plugins/grid-bookmark/src/GridBookmarkWidget/components/dialogs/DeleteBookmarksDialog.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react'\nimport { Button, DialogContent, DialogActions, Alert } from '@mui/material'\nimport { Dialog } from '@jbrowse/core/ui'\n\n// locals\nimport { GridBookmarkModel } from '../../model'\n\nconst DeleteBookmarksDialog = observer(function ({\n onClose,\n model,\n}: {\n onClose: () => void\n model: GridBookmarkModel\n}) {\n const { selectedBookmarks } = model\n const deleteAll = selectedBookmarks.length === 0\n\n return (\n <Dialog open onClose={onClose} title=\"Delete bookmarks\">\n <DialogContent>\n <Alert severity=\"warning\">\n {deleteAll ? (\n <>\n <span>All bookmarks will be deleted.</span>\n <br />\n <span>\n Use the checkboxes to select individual bookmarks to delete.\n </span>\n </>\n ) : (\n 'Only selected bookmarks will be deleted.'\n )}\n </Alert>\n </DialogContent>\n <DialogActions>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n onClick={() => {\n onClose()\n }}\n >\n Cancel\n </Button>\n <Button\n variant=\"contained\"\n color=\"primary\"\n onClick={() => {\n if (deleteAll) {\n model.clearAllBookmarks()\n }\n\n model.clearSelectedBookmarks()\n onClose()\n }}\n >\n Confirm\n </Button>\n </DialogActions>\n </Dialog>\n )\n})\n\nexport default DeleteBookmarksDialog\n"],"names":["observer","onClose","model","selectedBookmarks","deleteAll","length","React","Dialog","open","title","DialogContent","Alert","severity","DialogActions","Button","variant","color","onClick","clearAllBookmarks","clearSelectedBookmarks"],"sourceRoot":""}