@bento-core/table 1.0.1-ccdihub.114 → 1.0.1-ccdihub.115
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');
|
|
@@ -640,9 +641,7 @@ const CPIModal = _ref => {
|
|
|
640
641
|
className: classes.questionIcon
|
|
641
642
|
}))), /*#__PURE__*/_react.default.createElement(_core.Button, {
|
|
642
643
|
style: viewInExploreButton,
|
|
643
|
-
onClick: () =>
|
|
644
|
-
window.location.href = "/explore?p_id=".concat(participantId, "&dbgap_accession=").concat(studyId);
|
|
645
|
-
},
|
|
644
|
+
onClick: () => navigation("/explore?p_id=".concat(participantId, "&dbgap_accession=").concat(studyId)),
|
|
646
645
|
disableRipple: true
|
|
647
646
|
}, "VIEW IN EXPLORE"), /*#__PURE__*/_react.default.createElement("div", {
|
|
648
647
|
className: classes.dropdownContainer,
|
|
@@ -682,8 +681,8 @@ const CPIModal = _ref => {
|
|
|
682
681
|
}, /*#__PURE__*/_react.default.createElement(_core.Button, {
|
|
683
682
|
style: goToCartButton,
|
|
684
683
|
onClick: () => {
|
|
685
|
-
window.location.href = '/fileCentricCart';
|
|
686
684
|
setDropdownOpen(false);
|
|
685
|
+
navigation('/fileCentricCart');
|
|
687
686
|
},
|
|
688
687
|
disableRipple: true
|
|
689
688
|
}, "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.115",
|
|
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');
|
|
@@ -684,9 +685,7 @@ const CPIModal = ({
|
|
|
684
685
|
|
|
685
686
|
<Button
|
|
686
687
|
style={viewInExploreButton}
|
|
687
|
-
onClick={() => {
|
|
688
|
-
window.location.href = `/explore?p_id=${participantId}&dbgap_accession=${studyId}`;
|
|
689
|
-
}}
|
|
688
|
+
onClick={() => navigation(`/explore?p_id=${participantId}&dbgap_accession=${studyId}`)}
|
|
690
689
|
disableRipple
|
|
691
690
|
>
|
|
692
691
|
VIEW IN EXPLORE
|
|
@@ -737,8 +736,8 @@ const CPIModal = ({
|
|
|
737
736
|
<Button
|
|
738
737
|
style={goToCartButton}
|
|
739
738
|
onClick={() => {
|
|
740
|
-
window.location.href = '/fileCentricCart';
|
|
741
739
|
setDropdownOpen(false);
|
|
740
|
+
navigation('/fileCentricCart');
|
|
742
741
|
}}
|
|
743
742
|
disableRipple
|
|
744
743
|
>
|
|
@@ -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) {
|