Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix meeting being an attachable resource

Oliver Günther450862ccceae
diff --git a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
index c0e79951030..99c0d30985b 100644
--- a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
@@ -88,8 +88,8 @@ import {
import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';
import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';
import allLocales from '@fullcalendar/core/locales-all';
-import { MeetingResource } from 'core-app/features/hal/resources/meeting-resource';
import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { MeetingResource } from 'core-app/features/hal/resources/meeting-resource';
@Component({
templateUrl: './wp-calendar.template.html',
diff --git a/frontend/src/app/features/hal/resources/meeting-resource.ts b/frontend/src/app/features/hal/resources/meeting-resource.ts
index 3f9f4a0b505..371a1f52578 100644
--- a/frontend/src/app/features/hal/resources/meeting-resource.ts
+++ b/frontend/src/app/features/hal/resources/meeting-resource.ts
@@ -27,8 +27,18 @@
//++
import { HalResource } from 'core-app/features/hal/resources/hal-resource';
+import { Attachable } from 'core-app/features/hal/resources/mixins/attachable-mixin';
-export class MeetingResource extends HalResource {
- public title:string;
- public project:HalResource;
+interface MeetingResourceLinks {
+ addAttachment(attachment:HalResource):Promise<unknown>;
}
+
+class MeetingBaseResource extends HalResource {
+ title:string;
+ project:HalResource;
+ public $links:MeetingResourceLinks;
+}
+
+export const MeetingResource = Attachable(MeetingBaseResource);
+
+export interface MeetingResource extends MeetingBaseResource, MeetingResourceLinks {}