@bento-core/table 1.0.1-ccdihub.114 → 1.0.1-ccdihub.116
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.
|
@@ -216,7 +216,8 @@ const CPIModal = _ref => {
|
|
|
216
216
|
let {
|
|
217
217
|
open,
|
|
218
218
|
onClose,
|
|
219
|
-
row
|
|
219
|
+
row,
|
|
220
|
+
navigation
|
|
220
221
|
} = _ref;
|
|
221
222
|
const classes = useStyles();
|
|
222
223
|
// const [sortBy, setSortBy] = useState('associated_id');
|
|
@@ -641,7 +642,8 @@ const CPIModal = _ref => {
|
|
|
641
642
|
}))), /*#__PURE__*/_react.default.createElement(_core.Button, {
|
|
642
643
|
style: viewInExploreButton,
|
|
643
644
|
onClick: () => {
|
|
644
|
-
|
|
645
|
+
onClose();
|
|
646
|
+
navigation("/explore?p_id=".concat(participantId, "&dbgap_accession=").concat(studyId));
|
|
645
647
|
},
|
|
646
648
|
disableRipple: true
|
|
647
649
|
}, "VIEW IN EXPLORE"), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -682,8 +684,9 @@ const CPIModal = _ref => {
|
|
|
682
684
|
}, /*#__PURE__*/_react.default.createElement(_core.Button, {
|
|
683
685
|
style: goToCartButton,
|
|
684
686
|
onClick: () => {
|
|
685
|
-
|
|
687
|
+
onClose();
|
|
686
688
|
setDropdownOpen(false);
|
|
689
|
+
navigation('/fileCentricCart');
|
|
687
690
|
},
|
|
688
691
|
disableRipple: true
|
|
689
692
|
}, "GO TO CART"))))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -107,8 +107,6 @@ const CPIFilesComponent = props => {
|
|
|
107
107
|
*/
|
|
108
108
|
const addAllFiles = () => {
|
|
109
109
|
let toAdd = [];
|
|
110
|
-
console.log('participantIds', participantIds);
|
|
111
|
-
console.log('rowID', rowID);
|
|
112
110
|
if (btnType === 'ADD_ALL_FILES') {
|
|
113
111
|
participantIds.forEach(e => {
|
|
114
112
|
if (e.data_type === 'internal' && e.p_id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.116",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
|
@@ -223,6 +223,7 @@ const CPIModal = ({
|
|
|
223
223
|
open,
|
|
224
224
|
onClose,
|
|
225
225
|
row,
|
|
226
|
+
navigation,
|
|
226
227
|
}) => {
|
|
227
228
|
const classes = useStyles();
|
|
228
229
|
// const [sortBy, setSortBy] = useState('associated_id');
|
|
@@ -685,7 +686,8 @@ const CPIModal = ({
|
|
|
685
686
|
<Button
|
|
686
687
|
style={viewInExploreButton}
|
|
687
688
|
onClick={() => {
|
|
688
|
-
|
|
689
|
+
onClose();
|
|
690
|
+
navigation(`/explore?p_id=${participantId}&dbgap_accession=${studyId}`);
|
|
689
691
|
}}
|
|
690
692
|
disableRipple
|
|
691
693
|
>
|
|
@@ -737,8 +739,9 @@ const CPIModal = ({
|
|
|
737
739
|
<Button
|
|
738
740
|
style={goToCartButton}
|
|
739
741
|
onClick={() => {
|
|
740
|
-
|
|
742
|
+
onClose();
|
|
741
743
|
setDropdownOpen(false);
|
|
744
|
+
navigation('/fileCentricCart');
|
|
742
745
|
}}
|
|
743
746
|
disableRipple
|
|
744
747
|
>
|
|
@@ -109,8 +109,6 @@ const CPIFilesComponent = (props) => {
|
|
|
109
109
|
*/
|
|
110
110
|
const addAllFiles = () => {
|
|
111
111
|
let toAdd = [];
|
|
112
|
-
console.log('participantIds', participantIds);
|
|
113
|
-
console.log('rowID', rowID);
|
|
114
112
|
if (btnType === 'ADD_ALL_FILES') {
|
|
115
113
|
participantIds.forEach((e) => {
|
|
116
114
|
if (e.data_type === 'internal' && e.p_id) {
|