'use strict'; import React from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Form from './../ascribe_forms/form'; import PieceExtraDataForm from './../ascribe_forms/form_piece_extradata'; import GlobalNotificationModel from '../../models/global_notification_model'; import GlobalNotificationActions from '../../actions/global_notification_actions'; import FurtherDetailsFileuploader from './further_details_fileuploader'; import { isReadyForFormSubmission } from '../ascribe_uploader/react_s3_fine_uploader_utils'; let FurtherDetails = React.createClass({ propTypes: { editable: React.PropTypes.bool, pieceId: React.PropTypes.number, extraData: React.PropTypes.object, otherData: React.PropTypes.arrayOf(React.PropTypes.object), handleSuccess: React.PropTypes.func }, getInitialState() { return { loading: false }; }, showNotification(){ this.props.handleSuccess(); let notification = new GlobalNotificationModel('Details updated', 'success'); GlobalNotificationActions.appendGlobalNotification(notification); }, submitKey(key){ this.setState({ otherDataKey: key }); }, setIsUploadReady(isReady) { this.setState({ isUploadReady: isReady }); }, render() { //return (); return (
); } }); export default FurtherDetails;