Reload activities after upload

pull/4605/head
Oliver Günther 8 years ago
parent cd13e54b20
commit 977ebfdf58
  1. 3
      frontend/app/components/work-packages/wp-attachments/wp-attachments.directive.ts
  2. 1
      frontend/app/components/work-packages/wp-attachments/wp-attachments.service.test.ts

@ -103,8 +103,7 @@ export class WorkPackageAttachmentsController {
if (this.files.length > 0) {
this.wpAttachments.upload(this.workPackage, this.files).then(() => {
this.files = [];
this.loadAttachments();
this.wpCacheService.loadWorkPackageLinks(this.workPackage, 'activities');
this.wpCacheService.loadWorkPackageLinks(this.workPackage, 'attachments', 'activities');
});
}
};

@ -57,6 +57,7 @@ describe('wpAttachments service', () => {
}
};
beforeEach(angular.mock.module('openproject'));
beforeEach(angular.mock.module('openproject.workPackages'));
beforeEach(angular.mock.inject((_wpAttachments_, _$httpBackend_, _$q_) => {

Loading…
Cancel
Save