Remove unused dependencies in angular modules.

pull/1871/head
Richard 10 years ago
parent beb2232138
commit f525046453
  1. 3
      app/assets/javascripts/angular/controllers/dialogs/columns.js
  2. 4
      app/assets/javascripts/angular/controllers/dialogs/export.js
  3. 3
      app/assets/javascripts/angular/controllers/dialogs/share.js
  4. 2
      app/assets/javascripts/angular/controllers/timelines-controller.js
  5. 4
      app/assets/javascripts/angular/directives/components/date-directive.js
  6. 2
      app/assets/javascripts/angular/directives/components/focus.js
  7. 2
      app/assets/javascripts/angular/directives/components/toggled-multiselect-directive.js
  8. 3
      app/assets/javascripts/angular/services/query-service.js
  9. 3
      app/assets/javascripts/angular/work_packages/controllers/details-tab-watchers-controller.js
  10. 3
      app/assets/javascripts/angular/work_packages/controllers/work-packages-controller.js
  11. 8
      app/assets/javascripts/angular/work_packages/directives/query-filter-directive.js
  12. 2
      app/assets/javascripts/angular/work_packages/directives/query-filters-directive.js
  13. 2
      app/assets/javascripts/angular/work_packages/directives/query-form-directive.js
  14. 2
      app/assets/javascripts/angular/work_packages/directives/work-package-details-toolbar-directive.js
  15. 2
      app/assets/javascripts/angular/work_packages/directives/work-package-group-sums-directive.js
  16. 2
      app/assets/javascripts/angular/work_packages/tabs/attachments-table-directive.js
  17. 4
      app/assets/javascripts/angular/work_packages/tabs/related-work-package-table-row-directive.js
  18. 6
      app/assets/javascripts/angular/work_packages/tabs/work-package-relations-directive.js
  19. 3
      app/assets/javascripts/angular/work_packages/work-package-context-menu.js

@ -37,14 +37,13 @@ angular.module('openproject.workPackages.controllers')
}])
.controller('ColumnsModalController', ['$scope',
'$timeout',
'$filter',
'columnsModal',
'QueryService',
'WorkPackageService',
'WorkPackagesTableService',
'$rootScope',
function($scope, $timeout, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService, $rootScope) {
function($scope, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService, $rootScope) {
this.name = 'Columns';
this.closeMe = columnsModal.deactivate;

@ -36,8 +36,8 @@ angular.module('openproject.workPackages.controllers')
});
}])
.controller('ExportModalController', ['$scope', 'exportModal', 'QueryService', 'UrlParamsHelper',
function($scope, exportModal, QueryService, UrlParamsHelper) {
.controller('ExportModalController', ['exportModal', 'QueryService', 'UrlParamsHelper',
function(exportModal, QueryService, UrlParamsHelper) {
this.name = 'Export';
var query = QueryService.getQuery();
this.closeMe = exportModal.deactivate;

@ -38,7 +38,6 @@ angular.module('openproject.workPackages.controllers')
.controller('ShareModalController', [
'$scope',
'I18n',
'shareModal',
'QueryService',
'AuthorisationService',
@ -46,7 +45,7 @@ angular.module('openproject.workPackages.controllers')
'QUERY_MENU_ITEM_TYPE',
'queryMenuItemFactory',
'PathHelper',
function($scope, I18n, shareModal, QueryService, AuthorisationService, $rootScope, QUERY_MENU_ITEM_TYPE, queryMenuItemFactory, PathHelper) {
function($scope, shareModal, QueryService, AuthorisationService, $rootScope, QUERY_MENU_ITEM_TYPE, queryMenuItemFactory, PathHelper) {
this.name = 'Share';
this.closeMe = shareModal.deactivate;

@ -28,7 +28,7 @@
angular.module('openproject.timelines.controllers')
.controller('TimelinesController', ['$scope', 'Timeline', function($scope, Timeline) {
.controller('TimelinesController', ['$scope', function($scope) {
// Setup
// Get server-side stuff into scope

@ -29,7 +29,7 @@
// TODO move to UI components
angular.module('openproject.uiComponents')
.directive('date', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) {
.directive('date', ['TimezoneService', function(TimezoneService) {
return {
restrict: 'EA',
replace: true,
@ -44,7 +44,7 @@ angular.module('openproject.uiComponents')
};
}])
.directive('time', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) {
.directive('time', ['TimezoneService', function(TimezoneService) {
return {
restrict: 'EA',
replace: true,

@ -29,7 +29,7 @@
// TODO move to UI components
angular.module('openproject.uiComponents')
.directive('focus', ['$timeout', 'FocusHelper', function($timeout, FocusHelper) {
.directive('focus', ['FocusHelper', function(FocusHelper) {
function isSelect2Element(attrs) {
var select2attributes = Object.keys(attrs).filter(function(attribute) {

@ -29,7 +29,7 @@
// TODO move to UI components
angular.module('openproject.uiComponents')
.directive('toggledMultiselect', ['WorkPackagesHelper', 'I18n', function(WorkPackagesHelper, I18n){
.directive('toggledMultiselect', ['I18n', function(I18n){
return {
restrict: 'EA',
replace: true,

@ -32,7 +32,6 @@ angular.module('openproject.services')
'Query',
'Sortation',
'$http',
'$location',
'PathHelper',
'$q',
'AVAILABLE_WORK_PACKAGE_FILTERS',
@ -46,7 +45,7 @@ angular.module('openproject.services')
'ProjectService',
'WorkPackagesTableHelper',
'I18n',
function(Query, Sortation, $http, $location, PathHelper, $q, AVAILABLE_WORK_PACKAGE_FILTERS, StatusService, TypeService, PriorityService, UserService, VersionService, RoleService, GroupService, ProjectService, WorkPackagesTableHelper, I18n) {
function(Query, Sortation, $http, PathHelper, $q, AVAILABLE_WORK_PACKAGE_FILTERS, StatusService, TypeService, PriorityService, UserService, VersionService, RoleService, GroupService, ProjectService, WorkPackagesTableHelper, I18n) {
var query;

@ -34,10 +34,9 @@ angular.module('openproject.workPackages.controllers')
['$scope',
'$filter',
'$timeout',
'workPackage',
'I18n',
'ADD_WATCHER_SELECT_INDEX',
function($scope, $filter, $timeout, workPackage, I18n, ADD_WATCHER_SELECT_INDEX) {
function($scope, $filter, $timeout, I18n, ADD_WATCHER_SELECT_INDEX) {
$scope.I18n = I18n;
$scope.focusElementIndex;

@ -33,8 +33,7 @@ angular.module('openproject.workPackages.controllers')
'$state',
'$stateParams',
'QueryService',
'ProjectService',
function($scope, $state, $stateParams, QueryService, ProjectService) {
function($scope, $state, $stateParams, QueryService) {
// Setup
$scope.$state = $state;

@ -28,7 +28,13 @@
angular.module('openproject.workPackages.directives')
.directive('queryFilter', ['WorkPackagesTableHelper', 'WorkPackageService', 'WorkPackageLoadingHelper', 'QueryService', 'PaginationService', 'I18n', '$timeout', function(WorkPackagesTableHelper, WorkPackageService, WorkPackageLoadingHelper, QueryService, PaginationService, I18n, $timeout) {
.directive('queryFilter', [
'WorkPackageLoadingHelper',
'QueryService',
'PaginationService',
'I18n',
'$timeout',
function(WorkPackageLoadingHelper, QueryService, PaginationService, I18n, $timeout) {
var updateResultsJob;

@ -28,7 +28,7 @@
angular.module('openproject.workPackages.directives')
.directive('queryFilters', ['WorkPackagesTableHelper', 'FiltersHelper', 'WorkPackageService', 'I18n', function(WorkPackagesTableHelper, FiltersHelper, WorkPackageService, I18n) {
.directive('queryFilters', ['FiltersHelper', 'I18n', function(FiltersHelper, I18n) {
return {
restrict: 'E',

@ -28,7 +28,7 @@
angular.module('openproject.workPackages.directives')
.directive('queryForm', ['WorkPackagesTableHelper', 'WorkPackageService', function(WorkPackagesTableHelper, WorkPackageService) {
.directive('queryForm', [function() {
return {
restrict: 'EA',

@ -36,7 +36,6 @@ angular.module('openproject.workPackages.directives')
'$window',
'I18n',
'HookService',
'WorkPackagesTableService',
'WorkPackageService',
'WorkPackageAuthorization',
'PathHelper',
@ -45,7 +44,6 @@ angular.module('openproject.workPackages.directives')
$window,
I18n,
HookService,
WorkPackagesTableService,
WorkPackageService,
WorkPackageAuthorization,
PathHelper) {

@ -28,7 +28,7 @@
angular.module('openproject.workPackages.directives')
.directive('workPackageGroupSums', ['WorkPackagesHelper', 'WorkPackageService', function(WorkPackagesHelper, WorkPackageService) {
.directive('workPackageGroupSums', [function() {
return {
restrict: 'A',

@ -28,7 +28,7 @@
angular.module('openproject.workPackages.directives')
.directive('attachmentsTable', ['PathHelper', 'I18n', function(PathHelper, I18n){
.directive('attachmentsTable', ['I18n', function(I18n){
return {
restrict: 'E',
templateUrl: '/templates/work_packages/tabs/_attachments_table.html',

@ -33,9 +33,7 @@ angular.module('openproject.workPackages.tabs')
'I18n',
'PathHelper',
'WorkPackagesHelper',
'ApiHelper',
'WorkPackageService',
function(I18n, PathHelper, WorkPackagesHelper, ApiHelper, WorkPackageService) {
function(I18n, PathHelper, WorkPackagesHelper) {
return {
restrict: 'A',
link: function(scope) {

@ -31,13 +31,9 @@ angular.module('openproject.workPackages.tabs')
.directive('workPackageRelations', [
'I18n',
'PathHelper',
'WorkPackageService',
'WorkPackagesHelper',
'PathHelper',
'ApiHelper',
'$timeout',
function(I18n, PathHelper, WorkPackageService, WorkPackagesHelper, PathHelper, ApiHelper, $timeout) {
function(I18n, WorkPackagesHelper, $timeout) {
return {
restrict: 'E',
replace: true,

@ -43,7 +43,6 @@ angular.module('openproject.workPackages')
.controller('WorkPackageContextMenuController', [
'$scope',
'$rootScope',
'WorkPackagesTableHelper',
'WorkPackageContextMenuHelper',
'WorkPackageService',
@ -51,7 +50,7 @@ angular.module('openproject.workPackages')
'I18n',
'$window',
'PERMITTED_CONTEXT_MENU_ACTIONS',
function($scope, $rootScope, WorkPackagesTableHelper, WorkPackageContextMenuHelper, WorkPackageService, WorkPackagesTableService, I18n, $window, PERMITTED_CONTEXT_MENU_ACTIONS) {
function($scope, WorkPackagesTableHelper, WorkPackageContextMenuHelper, WorkPackageService, WorkPackagesTableService, I18n, $window, PERMITTED_CONTEXT_MENU_ACTIONS) {
$scope.I18n = I18n;

Loading…
Cancel
Save