From 2946810c201e0a7629565ac8ae6b9c09e796f918 Mon Sep 17 00:00:00 2001 From: Georgi Georgiev Date: Mon, 20 Nov 2017 15:35:01 +0100 Subject: [PATCH] Apply indicator to distinguish user's trades in order books. The indicator is the cancel button. You can cancel offer from there as well not only from my orders widget. --- frontend/imports/ui/client/widgets/maintrades.html | 4 ++-- frontend/imports/ui/client/widgets/orderbook.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/imports/ui/client/widgets/maintrades.html b/frontend/imports/ui/client/widgets/maintrades.html index 62b63cc4..64092be9 100644 --- a/frontend/imports/ui/client/widgets/maintrades.html +++ b/frontend/imports/ui/client/widgets/maintrades.html @@ -36,10 +36,10 @@
- {{> 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}}
- {{> 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}}
diff --git a/frontend/imports/ui/client/widgets/orderbook.html b/frontend/imports/ui/client/widgets/orderbook.html index fbee456e..3c54b84a 100644 --- a/frontend/imports/ui/client/widgets/orderbook.html +++ b/frontend/imports/ui/client/widgets/orderbook.html @@ -17,7 +17,7 @@

{{{loadingIcon}}} Loading sell orders...
{{/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}}