mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
removed loadPieceList from shortlist in detail
This commit is contained in:
parent
ad7e86108e
commit
e3b85bf808
@ -74,7 +74,7 @@ let LoanRequestAnswerForm = React.createClass({
|
|||||||
message={''}
|
message={''}
|
||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
url={this.props.url}
|
url={this.props.url}
|
||||||
email={""}
|
email={this.state.loanRequest.new_owner}
|
||||||
gallery={this.state.loanRequest.gallery}
|
gallery={this.state.loanRequest.gallery}
|
||||||
showPassword={true}
|
showPassword={true}
|
||||||
showPersonalMessage={false}
|
showPersonalMessage={false}
|
||||||
|
@ -16,7 +16,6 @@ import PrizeRatingActions from '../../actions/prize_rating_actions';
|
|||||||
import PrizeRatingStore from '../../stores/prize_rating_store';
|
import PrizeRatingStore from '../../stores/prize_rating_store';
|
||||||
|
|
||||||
import UserStore from '../../../../../stores/user_store';
|
import UserStore from '../../../../../stores/user_store';
|
||||||
import WhitelabelStore from '../../../../../stores/whitelabel_store';
|
|
||||||
|
|
||||||
import Piece from '../../../../../components/ascribe_detail/piece';
|
import Piece from '../../../../../components/ascribe_detail/piece';
|
||||||
import Note from '../../../../../components/ascribe_detail/note';
|
import Note from '../../../../../components/ascribe_detail/note';
|
||||||
@ -189,8 +188,7 @@ let PrizePieceRatings = React.createClass({
|
|||||||
getInitialState() {
|
getInitialState() {
|
||||||
return mergeOptions(
|
return mergeOptions(
|
||||||
PieceListStore.getState(),
|
PieceListStore.getState(),
|
||||||
PrizeRatingStore.getState(),
|
PrizeRatingStore.getState()
|
||||||
WhitelabelStore.getState()
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -199,7 +197,6 @@ let PrizePieceRatings = React.createClass({
|
|||||||
PrizeRatingActions.fetchOne(this.props.piece.id);
|
PrizeRatingActions.fetchOne(this.props.piece.id);
|
||||||
PrizeRatingActions.fetchAverage(this.props.piece.id);
|
PrizeRatingActions.fetchAverage(this.props.piece.id);
|
||||||
PieceListStore.listen(this.onChange);
|
PieceListStore.listen(this.onChange);
|
||||||
WhitelabelStore.listen(this.onChange);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
@ -210,7 +207,6 @@ let PrizePieceRatings = React.createClass({
|
|||||||
PrizeRatingActions.updateRating({});
|
PrizeRatingActions.updateRating({});
|
||||||
PrizeRatingStore.unlisten(this.onChange);
|
PrizeRatingStore.unlisten(this.onChange);
|
||||||
PieceListStore.unlisten(this.onChange);
|
PieceListStore.unlisten(this.onChange);
|
||||||
WhitelabelStore.unlisten(this.onChange);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// The StarRating component does not have a property that lets us set
|
// The StarRating component does not have a property that lets us set
|
||||||
@ -255,7 +251,7 @@ let PrizePieceRatings = React.createClass({
|
|||||||
'Please accept the loan request to proceed\n\nBest regards,\n\nSluice.'}
|
'Please accept the loan request to proceed\n\nBest regards,\n\nSluice.'}
|
||||||
id={{piece_id: this.props.piece.id}}
|
id={{piece_id: this.props.piece.id}}
|
||||||
url={ApiUrls.ownership_loans_pieces_request}
|
url={ApiUrls.ownership_loans_pieces_request}
|
||||||
email={this.state.whitelabel.user}
|
email={this.props.currentUser.email}
|
||||||
gallery={this.props.piece.prize.name}
|
gallery={this.props.piece.prize.name}
|
||||||
startdate={today}
|
startdate={today}
|
||||||
enddate={endDate}
|
enddate={endDate}
|
||||||
@ -270,8 +266,6 @@ let PrizePieceRatings = React.createClass({
|
|||||||
handleLoanRequestSuccess(){},
|
handleLoanRequestSuccess(){},
|
||||||
|
|
||||||
refreshPieceData() {
|
refreshPieceData() {
|
||||||
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search,
|
|
||||||
this.state.orderBy, this.state.orderAsc, this.state.filterBy);
|
|
||||||
this.props.loadPiece();
|
this.props.loadPiece();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user