mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-13 08:01:20 +01:00
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 );
|
||||
return [ period,
|
||||
parseInt( value.amount ) * multiplicator ];
|
||||
} ) };
|
||||
} )
|
||||
};
|
||||
} )
|
||||
.value();
|
||||
$scope.periods = _.chain($scope.periods).uniq().reverse().value();
|
||||
$scope.periods = _.chain($scope.periods).uniq().sort().reverse().value();
|
||||
$scope.period = _($scope.periods).first();
|
||||
} );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue