diff --git a/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardController.js b/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardController.js index c14372ff..eda0ff78 100644 --- a/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardController.js +++ b/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardController.js @@ -26,12 +26,12 @@ module.exports = function(ngModule) { customFilters: { filterType: function (items, value, predicate) { return items.filter(function (item) { - return value && item[predicate] ? findIndex(item[predicate], ['id', value]) !== -1 : true; + return value && item[predicate] ? findIndex(item[predicate], ['id', +value]) !== -1 : true; }); }, filterStatus: function (items, value, predicate) { return items.filter(function (item) { - return value ? get(item, predicate, undefined) === value : true; + return value ? get(item, predicate, undefined) === +value : true; }); } } @@ -46,5 +46,6 @@ module.exports = function(ngModule) { $scope.gotoUsers = function() { $location.path("/admin/users"); } + }); } diff --git a/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardTemplate.html b/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardTemplate.html index e41f45d5..90eb721e 100644 --- a/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardTemplate.html +++ b/DOL.WHD.Section14c.Web/src/modules/pages/adminDashboardTemplate.html @@ -14,14 +14,16 @@

Dashboard

- +
- +