From 9a791e1f4f69caedff5a3679a655a87be9c0ba8a Mon Sep 17 00:00:00 2001
From: Marc Hanisch <mhanisch@gfz-potsdam.de>
Date: Tue, 1 Jun 2021 07:49:54 +0200
Subject: [PATCH] implements IDateCompareable

---
 models/GenericAction.ts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/models/GenericAction.ts b/models/GenericAction.ts
index 1d6983756..4d144df1f 100644
--- a/models/GenericAction.ts
+++ b/models/GenericAction.ts
@@ -33,6 +33,7 @@ import { DateTime } from 'luxon'
 import { Attachment } from '@/models/Attachment'
 import { Contact } from '@/models/Contact'
 import { IAction } from '@/models/Action'
+import { IDateCompareable } from '@/modelUtils/Compareables'
 
 export interface IGenericAction extends IAction {
   actionTypeName: string
@@ -43,7 +44,7 @@ export interface IGenericAction extends IAction {
   attachments: Attachment[]
 }
 
-export class GenericAction implements IGenericAction {
+export class GenericAction implements IGenericAction, IDateCompareable {
   private _id: string | null = null
   private _description: string = ''
   private _actionTypeName: string = ''
@@ -150,4 +151,8 @@ export class GenericAction implements IGenericAction {
   get isGenericAction (): boolean {
     return true
   }
+
+  get date (): DateTime | null {
+    return this.beginDate
+  }
 }
-- 
GitLab