Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2497 from darkdarkdragon/release-RT-3402
Browse files Browse the repository at this point in the history
[FIX] Trade: Show loading for orderbooks(RT-3402)
  • Loading branch information
mrajvanshy committed May 11, 2015
2 parents 1312a3d + 3c20fd9 commit d3359d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/templates/tabs/trade.jade
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ section.col-xs-12.content(ng-controller="TradeCtrl")
.col-xs-4.rpamount.price
a(href="", ng-click="fill_widget('sell', order, true)", ng-bind="order.showPrice")

.message(ng-show='!bookShow.bids.length', l10n) There are currently no bids for this pair.
.message(ng-show='!bookShow.bids.length && book.ready', l10n) There are currently no bids for this pair.
.message(ng-show="!book.ready && !bookShow.bids.length")
img(src="img/button-s.png", class="loader")
span(class="loading_text", l10n) Loading...

.asks.col-xs-12.col-lg-6
.title(l10n) Asks
Expand Down Expand Up @@ -689,7 +692,11 @@ section.col-xs-12.content(ng-controller="TradeCtrl")
ng-click="fill_widget('buy', order, true)")
span(rp-bind-color-amount="order.showSum")

.message(ng-show='!bookShow.asks.length', l10n) There are currently no asks for this pair.
.message(ng-show='!bookShow.asks.length && book.ready', l10n) There are currently no asks for this pair.
.message(ng-show="!book.ready && !bookShow.asks.length")
img(src="img/button-s.png", class="loader")
span(class="loading_text", l10n) Loading...

.foot
a.loadmore(ng-show="orderbookState=='ready' && (bookShow.asks.length || bookShow.bids.length)", href="", ng-click="loadMore()", l10n) Load more
div(ng-show="orderbookState=='full'", l10n) No more orders

0 comments on commit d3359d3

Please sign in to comment.