Force reloading of activities on WP update

pull/4605/head
Oliver Günther 8 years ago
parent 57e8fd0171
commit dc98df84c1
  1. 4
      frontend/app/components/wp-activity/user/user-activity-directive.ts
  2. 4
      frontend/app/components/wp-panels/activity-panel/wp-activity.service.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;
});
};

@ -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(() => {

Loading…
Cancel
Save