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

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

@ -79,7 +79,7 @@ let Piece = React.createClass({
handleEditionCreationSuccess() { handleEditionCreationSuccess() {
PieceActions.updateProperty({key: 'num_editions', value: 0}); 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(); this.toggleCreateEditionsDialog();
}, },

View File

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

View File

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