mirror of
https://github.com/ascribe/onion.git
synced 2024-06-28 08:37:59 +02:00
reload piece list after clicking on create editions
This commit is contained in:
parent
756480e4cf
commit
f3ea3460bb
|
@ -5,7 +5,6 @@ import React from 'react';
|
|||
import EditionListActions from '../../actions/edition_list_actions';
|
||||
import EditionListStore from '../../stores/edition_list_store';
|
||||
|
||||
import { getAvailableAcls } from '../../utils/acl_utils';
|
||||
import { getLangText } from '../../utils/lang_utils';
|
||||
|
||||
import classNames from 'classnames';
|
||||
|
@ -65,8 +64,6 @@ let CreateEditionsButton = React.createClass({
|
|||
render: function () {
|
||||
let piece = this.props.piece;
|
||||
|
||||
let availableAcls = getAvailableAcls(piece);
|
||||
|
||||
if (!piece.acl.acl_editions || piece.num_editions > 0){
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -79,6 +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);
|
||||
this.toggleCreateEditionsDialog();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user