From 265a7573ce03447737b32c76b0965b1f7f6c596c Mon Sep 17 00:00:00 2001 From: ddejongh Date: Wed, 3 Jun 2015 10:43:59 +0200 Subject: [PATCH] aclbuttonlist willmount --- .../ascribe_buttons/acl_button_list.js | 2 +- js/components/edition.js | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/js/components/ascribe_buttons/acl_button_list.js b/js/components/ascribe_buttons/acl_button_list.js index 6a7c78f9..45118707 100644 --- a/js/components/ascribe_buttons/acl_button_list.js +++ b/js/components/ascribe_buttons/acl_button_list.js @@ -14,7 +14,7 @@ let AclButtonList = React.createClass({ this.setState(state); }, - componentDidMount() { + componentWillMount() { UserActions.fetchCurrentUser(); UserStore.listen(this.onChange); }, diff --git a/js/components/edition.js b/js/components/edition.js index 8ca2c440..e528b504 100644 --- a/js/components/edition.js +++ b/js/components/edition.js @@ -3,7 +3,7 @@ import React from 'react'; import ResourceViewer from './ascribe_media/resource_viewer'; import EditionActions from '../actions/edition_actions' -import AclButton from './ascribe_buttons/acl_button' +import AclButtonList from './ascribe_buttons/acl_button_list' /** * This is the component that implements display-specific functionality @@ -56,20 +56,10 @@ let EditionDetails = React.createClass({
- - + handleSuccess={this.handleSuccess} />
);