Start working on Sync View between WP List and Panel

pull/4338/head
Roman Roelofsen 9 years ago
parent 33b4827c02
commit 8955e82ea5
  1. 4
      frontend/app/components/wp-table/wp-table.directive.js

@ -30,7 +30,7 @@ angular
.module('openproject.workPackages.directives') .module('openproject.workPackages.directives')
.directive('wpTable', wpTable); .directive('wpTable', wpTable);
function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages, $state){ function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages, $state, wpSyncEditService){
return { return {
restrict: 'E', restrict: 'E',
replace: true, replace: true,
@ -200,6 +200,8 @@ function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages,
}; };
scope.openWorkPackageInFullView = function(row) { scope.openWorkPackageInFullView = function(row) {
wpSyncEditService.putAsLoaded(row.object);
clearSelection(); clearSelection();
scope.setCheckedStateForAllRows(false); scope.setCheckedStateForAllRows(false);

Loading…
Cancel
Save