From 8955e82ea570aee1d1c5d1f7ec35d7da95e39f55 Mon Sep 17 00:00:00 2001 From: Roman Roelofsen Date: Mon, 21 Mar 2016 16:41:38 +0100 Subject: [PATCH] Start working on Sync View between WP List and Panel --- frontend/app/components/wp-table/wp-table.directive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/wp-table/wp-table.directive.js b/frontend/app/components/wp-table/wp-table.directive.js index 7af9f8ea21..0e2ba77636 100644 --- a/frontend/app/components/wp-table/wp-table.directive.js +++ b/frontend/app/components/wp-table/wp-table.directive.js @@ -30,7 +30,7 @@ angular .module('openproject.workPackages.directives') .directive('wpTable', wpTable); -function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages, $state){ +function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages, $state, wpSyncEditService){ return { restrict: 'E', replace: true, @@ -200,6 +200,8 @@ function wpTable(WorkPackagesTableService, $window, PathHelper, apiWorkPackages, }; scope.openWorkPackageInFullView = function(row) { + wpSyncEditService.putAsLoaded(row.object); + clearSelection(); scope.setCheckedStateForAllRows(false);