Skip to content

Commit

Permalink
add missing "orders not found" text (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieckhafer authored and Aaron Judd committed Jun 17, 2017
1 parent e4bade3 commit 6d50cea
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions imports/plugins/core/orders/client/components/ordersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,26 @@ class OrdersList extends Component {
render() {
const { orders } = this.props;

if (orders.length) {
return (
<div className="container-fluid-sm">
{orders.map((order, i) => {
return (
<div key={i}>
{this.renderOrderCard(order)}
</div>
);
})}
</div>
);
}

return (
<div className="container-fluid-sm">
{orders.map((order, i) => {
return (
<div key={i}>
{this.renderOrderCard(order)}
</div>
);
})}
<div className="empty-view-message">
<Icon icon="fa fa-sun-o" />
<Translation defaultValue={"No orders found"} i18nKey={"order.ordersNotFound"} />
</div>
</div>
);
}
Expand Down

0 comments on commit 6d50cea

Please sign in to comment.