It fixes #62

parent eef7619a
......@@ -13,7 +13,7 @@ export class BreadCrumbs extends React.Component {
/** breadCrumbsSize is used to mark as active the latest item in the list */
var breadCrumbsSize = items.length;
return (<Breadcrumb style={{ backgroundColor: '#bfbfbf', marginTop: -20, borderBotton: '1px solid #f2f2f2', fontSize: '14px' }}>
return (<Breadcrumb style={{ backgroundColor: '#bfbfbf', marginTop: -20, borderBotton: '1px solid #f2f2f2', fontSize: '15px' }}>
{items.map(function (breadcrumb, i) {
if (i === 0) {
......
......@@ -16,9 +16,9 @@ export default class GalleryDatasetThumbnail extends Component {
var url = getFileByEventId(this.props.sessionId, this.props.dataset.investigation.id, gallery[this.props.index] );
return <ImageZoom image={{
src: url,
alt: "test",
//alt: "test",
className: 'thumbnail',
style: { width: '100%' }
}} />;
}
}
......
......@@ -38,20 +38,22 @@ class InvestigationContainer extends Component {
let investigation = _.find(this.props.myInvestigations, (investigation) => { return investigation.id === Number(investigationId) });
if (investigation) {
// investigation was found in my Data
this.props.setBreadCrumbs([
{ name: 'My Data', link: '/investigations' },
{ name: 'Investigations', link: '/investigations' },
{ name: 'My Data', link: '/investigations' },
{ name: investigation.visitId.toUpperCase(), link: '/investigations' },
{ badge: investigation.name, name: investigation.summary, link: '/investigation/' + investigation.id + '/datasets' }
]);
} else {
// investion not found in my data, it can be among closed data
investigation = _.find(this.props.investigations, (investigation) => { return investigation.id === Number(investigationId) });
debugger
if (investigation) {
// investigation was found in my Data
this.props.setBreadCrumbs([
{ name: 'Closed Data', link: '/closed' },
{ name: 'Investigations', link: '/closed' },
{ name: 'Closed Data', link: '/closed' },
{ name: investigation.visitId.toUpperCase(), link: '/investigations' },
{ badge: investigation.name, name: investigation.summary, link: '/investigation/' + investigation.id + '/datasets' }
]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment