discourse/app/assets/javascripts/admin
Jarek Radosz 1dcdcb5c31
FIX: Cast all numerical values in reports (#8087)
* FIX: Cast all numerical values in reports

The backend can return some numerical values in report as strings. That results in unexpected order of values when sorting report tables.

* Create `toNumber()` helper

The `typeof` and `parseFloat` seem to be the fastest path: https://jsperf.com/number-vs-typeof-vs-parsefloat#results
2019-09-12 15:17:34 +02:00
..
adapters DEV: Use ResultSet with staff action logs. (#7661) 2019-08-13 20:55:05 +03:00
components UX: improves dates on reports export UI (#7971) 2019-08-06 08:41:21 +02:00
controllers DEV: Use ResultSet with staff action logs. (#7661) 2019-08-13 20:55:05 +03:00
helpers DEV: fix some deprecated SVG icon refs 2019-01-22 14:42:00 -05:00
mixins DEV: Upgrades to Ember 3.10 (#7871) 2019-07-16 12:45:15 +02:00
models FIX: Cast all numerical values in reports (#8087) 2019-09-12 15:17:34 +02:00
routes FEATURE: customization of html emails (#7934) 2019-07-30 15:05:08 -04:00
services FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
templates FIX: errors in qunit tests when version check info is missing 2019-09-10 16:38:23 -04:00