Skip to content

Commit

Permalink
Apply indicator to distinguish user's trades in order books. The indi…
Browse files Browse the repository at this point in the history
…cator is the cancel button. You can cancel offer from there as well not only from my orders widget.
  • Loading branch information
Georgi Georgiev committed Nov 20, 2017
1 parent 5207347 commit 2946810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/imports/ui/client/widgets/maintrades.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<div class="row">
<div class="order-center">
<section class="order-section col-md-6">
{{> orderbook title='BUY ORDERS' subtitle=(concat '(click on an order listing to sell ' baseCurrency ')') priceClass='bid' priceLabel='BID PRICE' orders=(findOffers 'bid') showType=false}}
{{> orderbook title='BUY ORDERS' subtitle=(concat '(click on an order listing to sell ' baseCurrency ')') priceClass='bid' priceLabel='BID PRICE' orders=(findOffers 'bid') showCancel=true showType=false}}
</section>
<section class="order-section col-md-6">
{{> orderbook title='SELL ORDERS' subtitle=(concat '(click on an order listing to buy ' baseCurrency ')') priceClass='ask' priceLabel='ASK PRICE' orders=(findOffers 'ask')}}
{{> orderbook title='SELL ORDERS' subtitle=(concat '(click on an order listing to buy ' baseCurrency ')') priceClass='ask' priceLabel='ASK PRICE' orders=(findOffers 'ask') showCancel=true}}
</section>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/imports/ui/client/widgets/orderbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2>
<div class="loading-market-history">{{{loadingIcon}}} Loading sell orders...</div>
{{/if}}
{{/if}}
{{> orders orders=orders type=priceClass priceLabel=priceLabel priceClass=priceClass canAccept=(isMarketOpen) showCancel=(not isMarketOpen)}}
{{> orders orders=orders type=priceClass priceLabel=priceLabel priceClass=priceClass canAccept=(isMarketOpen) showCancel=showCancel}}
</div>
</div>
</template>

0 comments on commit 2946810

Please sign in to comment.