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:
parent
9194dc641a
commit
943c7503ea
@ -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 (
|
||||
|
@ -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();
|
||||
},
|
||||
|
||||
|
@ -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});
|
||||
|
@ -44,11 +44,6 @@ hr {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
form{
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#main {
|
||||
height: 100%;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user