Merge pull request #411 from mustakimali/master

Formatted 'Rules count' number with thousands separator
This commit is contained in:
Andrey Meshkov 2018-10-23 18:30:40 +01:00 committed by GitHub
commit b6bc613c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class Filters extends Component {
Header: 'Rules count', Header: 'Rules count',
accessor: 'rulesCount', accessor: 'rulesCount',
className: 'text-center', className: 'text-center',
Cell: props => props.value.toLocaleString(),
}, { }, {
Header: 'Last time updated', Header: 'Last time updated',
accessor: 'lastUpdated', accessor: 'lastUpdated',

View File

@ -62,6 +62,7 @@ const getTrackerDataFromDb = (domainName, trackersDb, source) => {
/** /**
* Gets the source metadata for the specified tracker * Gets the source metadata for the specified tracker
* @param {TrackerData} trackerData tracker data * @param {TrackerData} trackerData tracker data
* @returns {source} source metadata or null if no matching tracker found
*/ */
export const getSourceData = (trackerData) => { export const getSourceData = (trackerData) => {
if (!trackerData || !trackerData.source) { if (!trackerData || !trackerData.source) {