Commit de1709c0 authored by Maxime Chaillet's avatar Maxime Chaillet

Rename EventContainer to LogbookContainer

parent bc88aef4
......@@ -6,7 +6,7 @@ import { Row, Col, Tab, Glyphicon, Badge, Nav, NavItem } from 'react-bootstrap';
import DatasetTable from '../../components/Dataset/DatasetTable.js';
import { PERSPECTIVE } from '../../constants/Perspectives.js';
import { addDatasetById, removeDatasetById } from '../../actions/selection.js';
import EventContainer from '../Event/EventContainer';
import LogbookContainer from '../Logbook/LogbookContainer';
import Loader from 'react-loader-advanced';
import { setBreadCrumbs } from '../../actions/breadcrumbs.js';
import { fetchDatasetsByDOI, fetchDatasetsByInvestigationId } from '../../actions/datasets.js';
......@@ -149,7 +149,7 @@ class InvestigationContainer extends Component {
</Loader>
</Tab.Pane>
<Tab.Pane eventKey={3} mountOnEnter={true}>
<EventContainer investigationId={this.props.investigationId} />
<LogbookContainer investigationId={this.props.investigationId} />
</Tab.Pane>
</Tab.Content>
</Col>
......
......@@ -7,7 +7,7 @@ import _ from 'lodash';
import EventList from '../../components/Event/List/EventList';
import EventActionBar from '../../components/Event/EventActionBar.js';
import { NEW_EVENT_INVISIBLE, NEW_EVENT_VISIBLE, DOC_VIEW, LIST_VIEW, ERROR_MESSAGE_TYPE, EDIT_EVENT_CONTEXT, EDIT_EVENT_VISIBLE, EDIT_EVENT_INVISIBLE, NEW_EVENT_CONTEXT, LOCALSTORAGE_NEW_EVENT_CONTENT_IN_PLAINTEXT_FORMAT, LOCALSTORAGE_NEW_EVENT_CONTENT_IN_HTML_FORMAT, LOCALSTORAGE_KEY_NEW_EVENT_CONTENT_IN_PLAINTEXT_FORMAT, LOCALSTORAGE_KEY_NEW_EVENT_CONTENT_IN_HTML_FORMAT } from '../../constants/EventTypes.js';
import { NEW_EVENT_INVISIBLE, NEW_EVENT_VISIBLE, LIST_VIEW, ERROR_MESSAGE_TYPE, EDIT_EVENT_CONTEXT, EDIT_EVENT_VISIBLE, EDIT_EVENT_INVISIBLE, NEW_EVENT_CONTEXT } from '../../constants/EventTypes.js';
import EventPager from '../../components/Event/EventPager.js';
import { convertPageToPageEventIndexes, isRangeAvailableOnTheClient } from '../../helpers/PaginationHelper.js';
import { GUI_CONFIG } from '../../config/gui.config.js';
......@@ -16,17 +16,15 @@ import UserMessage from '../../components/UserMessage.js';
import { getSelectionFiltersBySearchCriteria, getSelectionFiltersForMongoQuery } from './SelectionFilterHelper.js';
import { clearAvailableTagAction } from '../../actions/logbook.js';
import OverlayBox from '../../components/Event/OverlayBox.js';
import EditEvent from '../../components/Event/EditEvent';
import NewOrEditEventPanel from '../../components/Event/NewOrEditEventPanel.js';
import "../../components/Event/event.css"
import { INFO_MESSAGE_TYPE } from '../../constants/UserMessages.js';
/**
* This class represents the event container component. It's role is to retrieve events from the server asynchronuously.
* Also, it is connected to redux and retrieves user data and sessionId.
*/
class EventContainer extends React.Component {
class LogbookContainer extends React.Component {
constructor(props) {
super(props);
......@@ -38,7 +36,7 @@ class EventContainer extends React.Component {
eventReceptionStatus: 'idle', //idle, fetched, countFetched, allFetched; Used to handle asynchronous data retrieval from the server
eventCountReceptionStatus: 'idle', //idle, fetched, countFetched, allFetched; Used to handle asynchronous data retrieval from the server
eventBeingEdited: null,
isNewEventVisible: 'caca',
isNewEventVisible: false,
pageEvents: [], // events currently displayed on the page
selectedEventId: 0,
sortingFilter: GUI_CONFIG().DEFAULT_SORTING_FILTER,
......@@ -538,9 +536,9 @@ function mapDispatchToProps(dispatch) {
};
}
EventContainer.propTypes = {
LogbookContainer.propTypes = {
/** the investigationId */
investigationId: PropTypes.string.isRequired
};
export default connect(mapStateToProps, mapDispatchToProps)(EventContainer);
export default connect(mapStateToProps, mapDispatchToProps)(LogbookContainer);
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