diff --git a/src/filters.js b/src/filters.js index 97795f04f..dbb68d024 100644 --- a/src/filters.js +++ b/src/filters.js @@ -81,6 +81,11 @@ const lookup = (value) => { return returnValue; }; +const formatNumber = (value) => { + return typeof value === 'number' ? value.toLocaleString('en-GB') : value; +}; + export { - lookup + lookup, + formatNumber }; diff --git a/src/views/Candidates/CandidatesList.vue b/src/views/Candidates/CandidatesList.vue index 2858fc63d..588a70d57 100644 --- a/src/views/Candidates/CandidatesList.vue +++ b/src/views/Candidates/CandidatesList.vue @@ -29,7 +29,7 @@ {{ new Date(row.created) | formatDate('long') }} - {{ countApplications(row) }} + {{ countApplications(row) | formatNumber }} diff --git a/src/views/Exercise/Applications.vue b/src/views/Exercise/Applications.vue index c3520746a..eaa8e39f7 100644 --- a/src/views/Exercise/Applications.vue +++ b/src/views/Exercise/Applications.vue @@ -13,6 +13,7 @@