From 9aa81433a61840b499ef619abdb05da469a614fc Mon Sep 17 00:00:00 2001 From: diminator Date: Thu, 9 Jul 2015 14:59:24 +0100 Subject: [PATCH] Merge remote-tracking branch 'remotes/origin/AD-551-work-on-burn-down-list' into AD-419-decouple-piece-registration-from- Conflicts: js/components/ascribe_detail/edition.js --- js/components/ascribe_detail/edition.js | 151 ------------------------ 1 file changed, 151 deletions(-) diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index 8857b188..94f6e507 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -331,157 +331,6 @@ let EditionPublicEditionNote = React.createClass({ } }); - -//let EditionFurtherDetails = React.createClass({ -// propTypes: { -// edition: 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 -// }); -// }, -// -// isReadyForFormSubmission(files) { -// files = files.filter((file) => file.status !== 'deleted' && file.status !== 'canceled'); -// if(files.length > 0 && files[0].status === 'upload successful') { -// return true; -// } else { -// return false; -// } -// }, -// -// render() { -// let editable = this.props.edition.acl.indexOf('edit') > -1; -// -// return ( -// -// -// -// -// -// -// -// -// ); -// } -//}); -// -//let FileUploader = React.createClass({ -// propTypes: { -// edition: React.PropTypes.object, -// setIsUploadReady: React.PropTypes.func, -// submitKey: React.PropTypes.func, -// isReadyForFormSubmission: React.PropTypes.func, -// editable: React.PropTypes.bool -// }, -// -// render() { -// // Essentially there a three cases important to the fileuploader -// // -// // 1. there is no other_data => do not show the fileuploader at all -// // 2. there is other_data, but user has no edit rights => show fileuploader but without action buttons -// // 3. both other_data and editable are defined or true => show fileuploade with all action buttons -// if (!this.props.editable && !this.props.edition.other_data){ -// return null; -// } -// return ( -//
-// -// -// -//
-//
-// ); -// } -//}); - let CoaDetails = React.createClass({ propTypes: { edition: React.PropTypes.object