Move WP table service to components

pull/3898/head
Alex Dik 9 years ago
parent 1b7a63bbcf
commit 6363bcb89e
  1. 12
      frontend/app/components/work-packages/services/wp-table.service.js
  2. 6
      frontend/app/work_packages/services/index.js

@ -1,4 +1,4 @@
//-- copyright
// -- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
@ -24,9 +24,13 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// See doc/COPYRIGHT.rdoc for more details.
//++
// ++
module.exports = function($filter, QueryService, WorkPackagesTableHelper) {
angular
.module('openproject.workPackages.services')
.factory('WorkPackagesTableService', WorkPackagesTableService);
function WorkPackagesTableService($filter, QueryService, WorkPackagesTableHelper) {
var workPackagesTableData = {
allRowsChecked: false,
showFiltersOptions: false
@ -173,4 +177,4 @@ module.exports = function($filter, QueryService, WorkPackagesTableHelper) {
};
return WorkPackagesTableService;
};
}

@ -27,12 +27,6 @@
//++
angular.module('openproject.workPackages.services')
.service('WorkPackagesTableService', [
'$filter',
'QueryService',
'WorkPackagesTableHelper',
require('./work-packages-table-service')
])
.constant('WORK_PACKAGE_ATTRIBUTES', [
{
groupName: 'details',

Loading…
Cancel
Save