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

reveal name on shortlist in list

This commit is contained in:
diminator 2015-08-26 16:55:12 +02:00
parent c64aae332d
commit 19c882f3b4

View File

@ -170,9 +170,9 @@ let AccordionListItemPrize = React.createClass({
},
render() {
let artistName = this.state.currentUser.is_jury ?
<span className="glyphicon glyphicon-eye-close" style={{fontSize: '0.75em'}} aria-hidden="true"/> :
this.props.content.artist_name;
let artistName = ((this.state.currentUser.is_jury && !this.state.currentUser.is_judge) ||
(this.state.currentUser.is_judge && !this.props.content.selected )) ?
<span className="glyphicon glyphicon-eye-close" aria-hidden="true"/> : this.props.content.artist_name;
return (
<div>
<AccordionListItemPiece