Code cleanup.
This commit is contained in:
parent
6821d8d0c6
commit
6a2d796cdb
@ -26,8 +26,8 @@ accountantApp
|
||||
|
||||
.controller(
|
||||
"SchedulerController", [
|
||||
"$scope", "$http", "$rootScope", "$filter", "$routeParams", "ScheduledOperations",
|
||||
function($scope, $http, $rootScope, $filter, $routeParams, ScheduledOperations) {
|
||||
"$scope", "$rootScope", "$routeParams", "ScheduledOperations",
|
||||
function($scope, $rootScope, $routeParams, ScheduledOperations) {
|
||||
// Operations store and selection
|
||||
$scope.operations = [];
|
||||
$scope.selectedOperation = null;
|
||||
@ -61,7 +61,7 @@ accountantApp
|
||||
};
|
||||
|
||||
$scope.isDisplaying = function(operation) {
|
||||
return operation.id && (!operation.state || operation.state === 'display');
|
||||
return !operation.state;
|
||||
};
|
||||
|
||||
$scope.createOperation = function(operation) {
|
||||
|
Loading…
Reference in New Issue
Block a user