Skip to content
Permalink
Browse files

Fix #115 and related tweaks

  • Loading branch information...
janoside committed Apr 10, 2019
1 parent 098a988 commit 076ccfc96d63221ceb6fd762f6462deb64c2becf
Showing with 7 additions and 1 deletion.
  1. +3 −0 app/utils.js
  2. +3 −0 views/includes/value-display.pug
  3. +1 −1 views/layout.pug
@@ -167,6 +167,9 @@ function formatCurrencyAmountWithForcedDecimalPlaces(amount, formatType, forcedD
dec = dec.times(global.exchangeRates[formatInfo.multiplier]);

return addThousandsSeparators(dec.toDecimalPlaces(decimalPlaces)) + " " + formatInfo.name;

} else {
return formatCurrencyAmountWithForcedDecimalPlaces(amount, coinConfig.defaultCurrencyUnit.name, forcedDecimalPlaces);
}
}
}
@@ -7,6 +7,9 @@ if (currencyValue > 0)
if (currencyFormatInfo.type == "native")
if (global.exchangeRates)
small.border-dotted.ml-1(data-toggle="tooltip", title=utils.formatExchangedCurrency(currencyValue, "usd")) #{parts[1]}

else
small.ml-1 #{parts[1]}

else if (currencyFormatInfo.type == "exchanged")
small.border-dotted.ml-1(data-toggle="tooltip", title=utils.formatCurrencyAmount(currencyValue, coinConfig.defaultCurrencyUnit.name)) #{parts[1]}
@@ -83,7 +83,7 @@ html(lang="en")
if (coinConfig.currencyUnits)
span(class="dropdown-header") Currency Units
each item in coinConfig.currencyUnits
if (item.type == "native" || config.queryExchangeRates)
if (item.type == "native" || (config.queryExchangeRates && !config.privacyMode))
a(class="dropdown-item", href=("/changeSetting?name=currencyFormatType&value=" + item.values[0]))
each valueName in item.values
if (currencyFormatType == valueName)

1 comment on commit 076ccfc

@beer2521

This comment has been minimized.

Copy link

commented on 076ccfc Apr 25, 2019

Bits
1d00ffff
Merkle Root
4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

Please sign in to comment.
You can’t perform that action at this time.