Fix indent.

This commit is contained in:
Alexis Lahouze 2017-07-05 21:48:20 +02:00
parent c558994c6d
commit c14d88f421
7 changed files with 918 additions and 914 deletions

View File

@ -155,5 +155,4 @@ var loginModule = angular.module('accountant.login', [
}); });
}); });
module.exports = loginModule; module.exports = loginModule;

View File

@ -180,7 +180,9 @@ var balanceChartModule = angular.module('balanceChartModule', [
} }
}; };
} }
}).factory('Balances', function($resource) { })
.factory('Balances', function($resource) {
return $resource( return $resource(
'/api/account/:id/daily_balances', { '/api/account/:id/daily_balances', {
id: '@id' id: '@id'

View File

@ -111,13 +111,17 @@ var categoryChartModule = angular.module('categoryChartModule', [
}; };
} }
}).factory('Categories', function($resource) { })
.factory('Categories', function($resource) {
return $resource( return $resource(
'/api/account/:id/category', { '/api/account/:id/category', {
id: '@id' id: '@id'
} }
); );
}).factory('Incomes', function($resource) { })
.factory('Incomes', function($resource) {
return $resource( return $resource(
'/api/account/:id/income', { '/api/account/:id/income', {
id: '@id' id: '@id'

View File

@ -61,7 +61,7 @@ var operationModule = angular.module('accountant.operations', [
* Controller for the operations. * Controller for the operations.
*/ */
.controller('OperationController', function($routeParams, $uibModal, .controller('OperationController', function($routeParams, $uibModal,
Notification, Operation, $log, $q) { Notification, Operation, Account, $log, $q) {
var vm = this; var vm = this;
@ -189,7 +189,7 @@ var operationModule = angular.module('accountant.operations', [
vm.operations = vm.load(minDate, maxDate); vm.operations = vm.load(minDate, maxDate);
}; };
//vm.operations = vm.load(); vm.account = Account.get({id: $routeParams.accountId});
}) })
.component('operationModifyModalComponent', { .component('operationModifyModalComponent', {

View File

@ -190,7 +190,6 @@ var schedulerModule = angular.module('accountant.scheduler', [
} }
}) })
.component('scheduleDeleteModalComponent', { .component('scheduleDeleteModalComponent', {
templateUrl: scheduleDeleteTmpl, templateUrl: scheduleDeleteTmpl,
bindings: { bindings: {