From dc98df84c1b059179adaf573c3d906dc308b76e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 4 Jul 2016 13:16:26 +0200 Subject: [PATCH] Force reloading of activities on WP update --- .../components/wp-activity/user/user-activity-directive.ts | 4 +--- .../wp-panels/activity-panel/wp-activity.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/wp-activity/user/user-activity-directive.ts b/frontend/app/components/wp-activity/user/user-activity-directive.ts index 41bb205725..9e8570fc7d 100644 --- a/frontend/app/components/wp-activity/user/user-activity-directive.ts +++ b/frontend/app/components/wp-activity/user/user-activity-directive.ts @@ -122,9 +122,7 @@ function userActivity($uiViewScroll, scope.updateComment = function () { ActivityService.updateComment(scope.activity, scope.activity.editedComment).then(function () { - scope.workPackage.activities.$load(true).then(() => { - wpCacheService.updateWorkPackage(scope.workPackage); - }); + wpCacheService.updateWorkPackage(scope.workPackage); scope.inEdit = false; }); }; diff --git a/frontend/app/components/wp-panels/activity-panel/wp-activity.service.ts b/frontend/app/components/wp-panels/activity-panel/wp-activity.service.ts index 21176f14aa..50d735bcd3 100644 --- a/frontend/app/components/wp-panels/activity-panel/wp-activity.service.ts +++ b/frontend/app/components/wp-panels/activity-panel/wp-activity.service.ts @@ -57,10 +57,10 @@ export class WorkPackagesActivityService { aggregated.push(data.elements); }; - promises.push(workPackage.activities.$load().then(add)); + promises.push(workPackage.activities.$load(true).then(add)); if (workPackage.revisions) { - promises.push(workPackage.revisions.$load().then(add)); + promises.push(workPackage.revisions.$load(true).then(add)); } return this.$q.all(promises).then(() => {