mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
reset cyland register form
"no votes yet" for judge
This commit is contained in:
parent
2d10887e1b
commit
a07b4cc35c
@ -94,6 +94,13 @@ let AccordionListItemPrize = React.createClass({
|
||||
</div>);
|
||||
}
|
||||
else {
|
||||
if (this.state.currentUser.is_judge){
|
||||
return (
|
||||
<div className="react-rating-caption pull-right">
|
||||
No votes yet
|
||||
</div>
|
||||
);
|
||||
}
|
||||
// jury and no rating yet
|
||||
return (
|
||||
<div className="react-rating-caption pull-right">
|
||||
|
@ -77,15 +77,6 @@ let CylandRegisterPiece = React.createClass({
|
||||
}
|
||||
},
|
||||
|
||||
// This is done to update the container when the user clicks on the prev or next
|
||||
// button to update the URL parameter (and therefore to switch pieces)
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if(this.props.params.pieceId !== nextProps.params.pieceId) {
|
||||
PieceActions.updatePiece({});
|
||||
PieceActions.fetchOne(nextProps.params.pieceId);
|
||||
}
|
||||
},
|
||||
|
||||
componentWillUnmount() {
|
||||
PieceListStore.unlisten(this.onChange);
|
||||
UserStore.unlisten(this.onChange);
|
||||
|
Loading…
Reference in New Issue
Block a user