This commit is contained in:
2020-02-06 20:27:50 +00:00
parent 7c8308f149
commit 2398d04bae

View File

@@ -139,17 +139,12 @@ document.addEventListener("fetchEnd", function() {
// FILTERS
//
//TODO: These almost all need more work to format as proper numeric value (comma versus decimal etc)
Vue.filter("capitalize", function vueFilterCapitalize(value) {
if (!value) return "";
value = value.toString();
return value.charAt(0).toUpperCase() + value.slice(1);
});
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString#Browser_compatibility
//https://www.currency-iso.org/en/home.html
Vue.filter("currency", function vueFilterCurrency(value) {