mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
add place holder for empty piece list
This commit is contained in:
parent
1976dee57a
commit
ea47f7a371
@ -16,6 +16,10 @@ let AccordionList = React.createClass({
|
|||||||
{this.props.children}
|
{this.props.children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
} else if(this.props.itemList.length === 0) {
|
||||||
|
return (
|
||||||
|
<p className="text-center">You don't have any works yet...</p>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div className={this.props.className + ' ascribe-accordion-list-loading'}>
|
<div className={this.props.className + ' ascribe-accordion-list-loading'}>
|
||||||
|
@ -121,10 +121,10 @@ let FileDragAndDrop = React.createClass({
|
|||||||
// Firefox only recognizes the simulated mouse click if bubbles is set to true,
|
// Firefox only recognizes the simulated mouse click if bubbles is set to true,
|
||||||
// but since Google Chrome propagates the event much further than needed, we
|
// but since Google Chrome propagates the event much further than needed, we
|
||||||
// need to stop propagation as soon as the event is created
|
// need to stop propagation as soon as the event is created
|
||||||
var evt = new MouseEvent("click", {
|
var evt = new MouseEvent('click', {
|
||||||
view: window,
|
view: window,
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
cancelable: true,
|
cancelable: true
|
||||||
});
|
});
|
||||||
evt.stopPropagation();
|
evt.stopPropagation();
|
||||||
this.refs.fileinput.getDOMNode().dispatchEvent(evt);
|
this.refs.fileinput.getDOMNode().dispatchEvent(evt);
|
||||||
|
Loading…
Reference in New Issue
Block a user