-
Notifications
You must be signed in to change notification settings - Fork 495
[FIX] History: show price for orders (RT-1385) #2409
Conversation
LGTM |
@darkdarkdragon please rebase |
5460719
to
fa9bb09
Compare
span(rp-span-spacing) : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.invStraightPrice") {{effect.invStraightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.pays | rpcurrency }} | ||
| per |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Localizable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad
1ecd532
to
2d74359
Compare
In history for orders show price in format prce: x CURRENCY per CURRENCY (like "You sold .002046 BTC for 51.15048 XRP (price: 25,000 XRP per BTC)")
2d74359
to
96965b9
Compare
@vhpoet Please look at changes to json rewriter. |
@@ -26,6 +26,30 @@ var getPrice = function(effect, referenceDate) { | |||
return price || 0; | |||
}; | |||
|
|||
var getStraightPrice = function(effect, referenceDate) { | |||
var g = effect.got ? effect.got : effect.gets; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var g = effect.got ? effect.got : effect.gets
is the same as
var g = effect.got || effect.gets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I tend to forget that notation :)
LGTM |
[FIX] History: show price for orders (RT-1385)
In history for orders show price in format
prce: x CURRENCY per CURRENCY (like
"You sold .002046 BTC for 51.15048 XRP (price: 25,000 XRP per BTC)")