Commit 25498af6 authored by Maxime Chaillet's avatar Maxime Chaillet

activate action on edit icon click. If fixes #152.

parent 71aec1a7
import { DOC_VIEW } from '../../../constants/EventTypes';
import React from 'react';
import PropTypes from 'prop-types'
import _ from 'lodash'
import Moment from 'moment'
import { Col, Table, Row, OverlayTrigger, Tooltip, Glyphicon } from 'react-bootstrap'
import { Table, OverlayTrigger, Tooltip, Glyphicon } from 'react-bootstrap'
import { getContent, convertImagesToThumbnails } from '../../../helpers/EventHelpers';
import { getOriginalEvent } from '../../../helpers/EventHelpers'
import UserMessage from '../../UserMessage';
import { INFO_MESSAGE_TYPE } from '../../../constants/UserMessages';
import EventIcon from './EventIcon.js';
import LazyLoad from 'react-lazyload';
import EventTimeLine from './EventTimeLine.js';
......@@ -51,7 +48,7 @@ class EventList extends React.Component {
return <tr>
<td style={{ width: '16px', borderTop: '0' }}>
<EventIcon event={event} /> <Glyphicon glyph='edit' />
<EventIcon event={event} /> <Glyphicon glyph='edit' onClick={() => { this.props.onEventClicked(event); }} />
<td style={{ width: '16px', borderTop: '0', borderRight: '1px solid #f2f2f2' }}>
<OverlayTrigger placement="right" overlay={<Tooltip id="tooltip"> <p> Events created on {Moment(getOriginalEvent(event).creationDate).format("MMMM Do YYYY, h:mm:ss a")} </p> </Tooltip>}>
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