diff --git a/models/GenericAction.ts b/models/GenericAction.ts index 1d69837568c448f8c898c9f4de31b4b730d8106e..4d144df1fa2bf1e8c0560974cdf92adc2c1074fe 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 + } }