mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Add default redirect for empty collections
This commit is contained in:
parent
9559bc09b4
commit
27f1b7e9b4
@ -62,6 +62,7 @@ let PieceList = React.createClass({
|
|||||||
]
|
]
|
||||||
}],
|
}],
|
||||||
orderParams: ['artist_name', 'title'],
|
orderParams: ['artist_name', 'title'],
|
||||||
|
redirectTo: '/register_piece',
|
||||||
shouldRedirect: () => true
|
shouldRedirect: () => true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -75,7 +75,6 @@ let PrizePieceList = React.createClass({
|
|||||||
<div>
|
<div>
|
||||||
<PieceList
|
<PieceList
|
||||||
ref="list"
|
ref="list"
|
||||||
redirectTo="/register_piece"
|
|
||||||
accordionListItemType={AccordionListItemPrize}
|
accordionListItemType={AccordionListItemPrize}
|
||||||
orderParams={orderParams}
|
orderParams={orderParams}
|
||||||
orderBy={this.state.currentUser.is_jury ? 'rating' : null}
|
orderBy={this.state.currentUser.is_jury ? 'rating' : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user