fix edition creation display bug on piece detail

This commit is contained in:
Tim Daubenschütz 2015-07-16 11:39:05 +02:00
parent 9194dc641a
commit 943c7503ea
4 changed files with 3 additions and 7 deletions

View File

@ -60,7 +60,7 @@ let AccordionListItemEditionWidget = React.createClass({
if(isEditionListOpen) {
// this is the loading feedback for the editions
// button.
//
//
// PLEASE FUTURE TIM, DO NOT FUCKING REMOVE IT AGAIN!
if(typeof this.state.editionList[pieceId] === 'undefined') {
return (

View File

@ -79,7 +79,7 @@ let Piece = React.createClass({
handleEditionCreationSuccess() {
PieceActions.updateProperty({key: 'num_editions', value: 0});
PieceListStore.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
this.toggleCreateEditionsDialog();
},

View File

@ -90,6 +90,7 @@ let Form = React.createClass({
}
}
else {
console.error(err);
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
}
this.setState({submitted: false});

View File

@ -44,11 +44,6 @@ hr {
margin-bottom: 15px;
}
form{
max-width: 600px;
margin: auto;
}
#main {
height: 100%;
}