From 173be180ced46321c7f9767a1aa746fab6f41c31 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 30 Oct 2019 22:34:12 +0100 Subject: [PATCH] Added itemdeleted event --- projects/common/src/lib/actions/app-common.actions.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/common/src/lib/actions/app-common.actions.ts b/projects/common/src/lib/actions/app-common.actions.ts index c001ead..e145661 100644 --- a/projects/common/src/lib/actions/app-common.actions.ts +++ b/projects/common/src/lib/actions/app-common.actions.ts @@ -21,6 +21,7 @@ export const LOADITEMTYPESSUCCESS = '[AppCommon] LoadItemTypesSuccess'; export const ITEMCHANGEDEVENT = '[AppCommon] ItemChangedEvent'; export const ITEMADDEDEVENT = '[AppCommon] ItemAddedEvent'; +export const ITEMDELETEDEVENT = '[AppCommon] ItemDeletedEvent'; export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent'; export const TASKENDEVENT = '[AppCommon] TaskEndEvent'; @@ -139,6 +140,12 @@ export class ItemAddedEvent implements Action { constructor(public itemCode: string, public attributes: any) { } } +export class ItemDeletedEvent implements Action { + readonly type = ITEMDELETEDEVENT; + + constructor(public itemCode: string, public attributes: any) { } +} + export class TaskStartEvent implements Action { readonly type = TASKSTARTEVENT; @@ -206,6 +213,8 @@ export type Actions = OpenModal | Login | Initialized | ItemChangedEvent + | ItemAddedEvent + | ItemDeletedEvent | Escape | LoadItemTypes | LoadItemTypesSuccess