diff --git a/src/js/directives/amount.js b/src/js/directives/amount.js
index bf519c0d0..98d6ac59f 100644
--- a/src/js/directives/amount.js
+++ b/src/js/directives/amount.js
@@ -2,7 +2,13 @@
/**
* @desc amount directive that can be used to display formatted financial values
- * @example
+ * size-equal attribute is optional, defaults to false.
+ * @example fee = {
+ * value: 12.49382901,
+ * currency: 'BCH'
+ * }
+ * @example
+ * @example
*/
angular.module('bitcoincom.directives')
.directive('amount', [
@@ -12,10 +18,13 @@ angular.module('bitcoincom.directives')
restrict: 'E',
scope: {
value: '=',
- currency: '='
+ currency: '=',
+ sizeEqual: '='
},
templateUrl: 'views/includes/amount.html',
controller: ['$scope', function($scope) {
+ if (typeof $scope.sizeEqual != 'undefined') $scope.sizeEqual = false;
+
var decimalPlaces = {
'0': ['BIF', 'CLP', 'DJF', 'GNF', 'ILS', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'UGX', 'VND', 'VUV', 'XAF', 'XOF', 'XPF'],
'3': ['BHD', 'IQD', 'JOD', 'KWD', 'OMR', 'TND'],
diff --git a/src/sass/components/amount.scss b/src/sass/components/amount.scss
index b22604181..363d38a20 100644
--- a/src/sass/components/amount.scss
+++ b/src/sass/components/amount.scss
@@ -30,5 +30,6 @@
.currency {
font-size: 1em;
margin-left: 5px;
+ text-transform: uppercase;
}
}
\ No newline at end of file
diff --git a/www/css/main.css b/www/css/main.css
index d30a89142..1798f4b98 100644
--- a/www/css/main.css
+++ b/www/css/main.css
@@ -15083,9 +15083,14 @@ log-options #check-bar .checkbox-icon {
font-size: 0.7857em;
margin-left: 5px; }
+.amount.size-equal .middle,
+.amount.size-equal .end {
+ font-size: 1em; }
+
.amount .currency {
font-size: 1em;
- margin-left: 5px; }
+ margin-left: 5px;
+ text-transform: uppercase; }
/* This is for rules that don't yet have a home.
* Our goal is to delete this file. Search the regex: /class=".*CLASS.*?"/
diff --git a/www/views/includes/amount.html b/www/views/includes/amount.html
new file mode 100644
index 000000000..4cf2807ad
--- /dev/null
+++ b/www/views/includes/amount.html
@@ -0,0 +1,4 @@
+
+ {{start}}{{middle}}{{end}}{{currency}}
+
\ No newline at end of file