added gas

This commit is contained in:
Marian Oancea
2015-02-09 17:44:44 +02:00
parent 1708636d85
commit 7632de1f40
2 changed files with 6 additions and 1 deletions

View File

@@ -44,6 +44,11 @@ angular.module('netStatsApp.filters', [])
return (best - current <= 1 ? 'text-success' : (best - current > 1 && best - current < 4 ? 'text-warning' : 'text-danger'));
};
})
.filter('gasFilter', function() {
return function(gas) {
return (typeof gas !== 'undefined' ? parseInt(gas) : '?');
}
})
.filter('timeClass', function() {
return function(timestamp) {
return timeClass(timestamp);