From 65571848fbb010cbf3d14cf5f3caf394eee25461 Mon Sep 17 00:00:00 2001 From: diminator Date: Wed, 26 Aug 2015 17:41:36 +0200 Subject: [PATCH] ordering by selected --- .../whitelabel/prize/components/prize_piece_list.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/components/whitelabel/prize/components/prize_piece_list.js b/js/components/whitelabel/prize/components/prize_piece_list.js index b8a9c1d5..b10d8bb5 100644 --- a/js/components/whitelabel/prize/components/prize_piece_list.js +++ b/js/components/whitelabel/prize/components/prize_piece_list.js @@ -54,13 +54,20 @@ let PrizePieceList = React.createClass({ }, render() { + let orderParams = ['artist_name', 'title']; + if (this.state.currentUser.is_jury) { + orderParams = ['rating', 'title']; + } + if (this.state.currentUser.is_judge) { + orderParams = ['rating', 'title', 'selected']; + } return (