Skip to content
Snippets Groups Projects
Verified Commit 9a791e1f authored by Marc Hanisch's avatar Marc Hanisch
Browse files

implements IDateCompareable

parent 11a07aea
No related branches found
No related tags found
2 merge requests!104Load and save Generic Device Actions,!93Actions UI for devices
......@@ -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
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment