[Fix] Show spinner while adding columns

pull/1508/head
Till Breuer 11 years ago
parent d9348d96b9
commit e031d59a75
  1. 5
      app/assets/javascripts/angular/controllers/dialogs/columns.js

@ -43,7 +43,8 @@ angular.module('openproject.workPackages.controllers')
'QueryService',
'WorkPackageService',
'WorkPackagesTableService',
function($scope, $timeout, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService) {
'$rootScope',
function($scope, $timeout, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService, $rootScope) {
this.name = 'Columns';
this.closeMe = columnsModal.deactivate;
@ -96,7 +97,7 @@ angular.module('openproject.workPackages.controllers')
if(groupBy.length === 0) groupBy = undefined; // don't pass an empty string as groupBy
if(addedColumns.length) {
$scope.refreshWorkPackages = WorkPackageService.augmentWorkPackagesWithColumnsData(currentWorkPackages, addedColumns, groupBy);
$rootScope.refreshWorkPackages = WorkPackageService.augmentWorkPackagesWithColumnsData(currentWorkPackages, addedColumns, groupBy);
}
columnsModal.deactivate();

Loading…
Cancel
Save