1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Merge branch 'AD-456-ikonotv-branded-page-for-registra' of bitbucket.org:ascribe/onion into AD-456-ikonotv-branded-page-for-registra

This commit is contained in:
Tim Daubenschütz 2015-09-28 17:22:02 +02:00
commit 52fc19444a
3 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ let Note = React.createClass({
},
render() {
if (!!this.props.currentUser.username && this.props.show) {
if ((!!this.props.currentUser.username && this.props.editable || !this.props.editable ) && this.props.show) {
return (
<Form
url={this.props.url}

View File

@ -69,7 +69,7 @@ let PrizePieceList = React.createClass({
accordionListItemType={AccordionListItemPrize}
orderParams={orderParams}
orderBy={this.state.currentUser.is_jury ? 'rating' : null}
filterParams={null}
filterParams={[]}
customSubmitButton={this.getButtonSubmit()}/>
</div>
);

View File

@ -6,6 +6,7 @@ import Router from 'react-router';
import ButtonLink from 'react-router-bootstrap/lib/ButtonLink';
import UserStore from '../../../../../stores/user_store';
import UserActions from '../../../../../actions/user_actions';
import { getLangText } from '../../../../../utils/lang_utils';
@ -20,6 +21,7 @@ let IkonotvLanding = React.createClass({
componentDidMount() {
UserStore.listen(this.onChange);
UserActions.fetchCurrentUser();
},
componentWillUnmount() {