@jbrowse/plugin-data-management 2.10.2 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,6 +17,11 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
17
17
|
width: 500,
|
|
18
18
|
},
|
|
19
19
|
}));
|
|
20
|
+
function DisabledButton() {
|
|
21
|
+
return (react_1.default.createElement(material_1.Tooltip, { title: "Unable to delete connection in config file as non-admin user" },
|
|
22
|
+
react_1.default.createElement(material_1.IconButton, null,
|
|
23
|
+
react_1.default.createElement(Close_1.default, { color: "disabled" }))));
|
|
24
|
+
}
|
|
20
25
|
const ManageConnectionsDialog = (0, mobx_react_1.observer)(function ({ session, handleClose, breakConnection, }) {
|
|
21
26
|
const { classes } = useStyles();
|
|
22
27
|
const { adminMode, connections, sessionConnections } = session;
|
|
@@ -28,9 +33,7 @@ const ManageConnectionsDialog = (0, mobx_react_1.observer)(function ({ session,
|
|
|
28
33
|
const name = (0, configuration_1.readConfObject)(conf, 'name');
|
|
29
34
|
return (react_1.default.createElement(material_1.Typography, { key: `conn-${name}` },
|
|
30
35
|
adminMode || (sessionConnections === null || sessionConnections === void 0 ? void 0 : sessionConnections.includes(conf)) ? (react_1.default.createElement(material_1.IconButton, { onClick: () => breakConnection(conf, true) },
|
|
31
|
-
react_1.default.createElement(Close_1.default, { color: "error" }))) : (react_1.default.createElement(
|
|
32
|
-
react_1.default.createElement(material_1.IconButton, null,
|
|
33
|
-
react_1.default.createElement(Close_1.default, { color: "disabled" })))),
|
|
36
|
+
react_1.default.createElement(Close_1.default, { color: "error" }))) : (react_1.default.createElement(DisabledButton, null)),
|
|
34
37
|
name));
|
|
35
38
|
}),
|
|
36
39
|
!connections.length ? (react_1.default.createElement(material_1.Typography, null, "No connections found")) : null)),
|
|
@@ -12,6 +12,11 @@ const useStyles = makeStyles()(theme => ({
|
|
|
12
12
|
width: 500,
|
|
13
13
|
},
|
|
14
14
|
}));
|
|
15
|
+
function DisabledButton() {
|
|
16
|
+
return (React.createElement(Tooltip, { title: "Unable to delete connection in config file as non-admin user" },
|
|
17
|
+
React.createElement(IconButton, null,
|
|
18
|
+
React.createElement(CloseIcon, { color: "disabled" }))));
|
|
19
|
+
}
|
|
15
20
|
const ManageConnectionsDialog = observer(function ({ session, handleClose, breakConnection, }) {
|
|
16
21
|
const { classes } = useStyles();
|
|
17
22
|
const { adminMode, connections, sessionConnections } = session;
|
|
@@ -23,9 +28,7 @@ const ManageConnectionsDialog = observer(function ({ session, handleClose, break
|
|
|
23
28
|
const name = readConfObject(conf, 'name');
|
|
24
29
|
return (React.createElement(Typography, { key: `conn-${name}` },
|
|
25
30
|
adminMode || (sessionConnections === null || sessionConnections === void 0 ? void 0 : sessionConnections.includes(conf)) ? (React.createElement(IconButton, { onClick: () => breakConnection(conf, true) },
|
|
26
|
-
React.createElement(CloseIcon, { color: "error" }))) : (React.createElement(
|
|
27
|
-
React.createElement(IconButton, null,
|
|
28
|
-
React.createElement(CloseIcon, { color: "disabled" })))),
|
|
31
|
+
React.createElement(CloseIcon, { color: "error" }))) : (React.createElement(DisabledButton, null)),
|
|
29
32
|
name));
|
|
30
33
|
}),
|
|
31
34
|
!connections.length ? (React.createElement(Typography, null, "No connections found")) : null)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-data-management",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"distModule": "esm/index.js",
|
|
61
61
|
"srcModule": "src/index.ts",
|
|
62
62
|
"module": "esm/index.js",
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c8fc800cd17decd72b2e971c7a6add3b95214e72"
|
|
64
64
|
}
|