Skip to content

Commit

Permalink
Improve the empty states
Browse files Browse the repository at this point in the history
  • Loading branch information
kyungmin committed Jan 22, 2015
1 parent d20f887 commit 63adaa3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
18 changes: 10 additions & 8 deletions app/templates/marketplace/payments-layout.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
</div>
{{/view}}

<nav class="payments-navbar clearfix">
<div class="actions pull-right">
<a {{action "openModal" "modals/export-csv-modal" resultsLoader}} class="btn-link sm">
<i class="icon icon-export"></i>
Export
</a>
</div>
</nav>
{{#if resultsLoader.results}}
<nav class="payments-navbar clearfix">
<div class="actions pull-right">
<a {{action "openModal" "modals/export-csv-modal" resultsLoader}} class="btn-link sm">
<i class="icon icon-export"></i>
Export
</a>
</div>
</nav>
{{/if}}

{{yield}}
1 change: 0 additions & 1 deletion app/views/marketplace/orders.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var MarketplaceOrdersView = Ember.View.extend({
layoutName: "marketplace/payments-layout",
templateName: "marketplace/orders",
hasResults: Ember.computed.gt("controller.resultsLoader.results.length", 0),
});

export default MarketplaceOrdersView;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"repository": "[email protected]:balanced/balanced-dashboard.git",
"author": "Balanced <[email protected]>",
"devDependencies": {
"balanced-addon-models": "git://github.com/balanced/balanced-addon-models#gandalf",
"balanced-addon-models": "git://github.com/balanced/balanced-addon-models",
"body-parser": "1.2.0",
"bower": "1.3.12",
"broccoli-asset-rev": "0.3.1",
Expand Down

0 comments on commit 63adaa3

Please sign in to comment.