default period always most recent
This commit is contained in:
parent
35432857a4
commit
1190718023
1 changed files with 3 additions and 2 deletions
|
@ -211,10 +211,11 @@ app.controller( 'DashboardCtrl',
|
||||||
$scope.periods.push( period );
|
$scope.periods.push( period );
|
||||||
return [ period,
|
return [ period,
|
||||||
parseInt( value.amount ) * multiplicator ];
|
parseInt( value.amount ) * multiplicator ];
|
||||||
} ) };
|
} )
|
||||||
|
};
|
||||||
} )
|
} )
|
||||||
.value();
|
.value();
|
||||||
$scope.periods = _.chain($scope.periods).uniq().reverse().value();
|
$scope.periods = _.chain($scope.periods).uniq().sort().reverse().value();
|
||||||
$scope.period = _($scope.periods).first();
|
$scope.period = _($scope.periods).first();
|
||||||
} );
|
} );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue