Added itemdeleted event
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2019-10-30 22:34:12 +01:00
parent 960db9e27a
commit 173be180ce

View File

@ -21,6 +21,7 @@ export const LOADITEMTYPESSUCCESS = '[AppCommon] LoadItemTypesSuccess';
export const ITEMCHANGEDEVENT = '[AppCommon] ItemChangedEvent'; export const ITEMCHANGEDEVENT = '[AppCommon] ItemChangedEvent';
export const ITEMADDEDEVENT = '[AppCommon] ItemAddedEvent'; export const ITEMADDEDEVENT = '[AppCommon] ItemAddedEvent';
export const ITEMDELETEDEVENT = '[AppCommon] ItemDeletedEvent';
export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent'; export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent';
export const TASKENDEVENT = '[AppCommon] TaskEndEvent'; export const TASKENDEVENT = '[AppCommon] TaskEndEvent';
@ -139,6 +140,12 @@ export class ItemAddedEvent implements Action {
constructor(public itemCode: string, public attributes: any) { } 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 { export class TaskStartEvent implements Action {
readonly type = TASKSTARTEVENT; readonly type = TASKSTARTEVENT;
@ -206,6 +213,8 @@ export type Actions = OpenModal
| Login | Login
| Initialized | Initialized
| ItemChangedEvent | ItemChangedEvent
| ItemAddedEvent
| ItemDeletedEvent
| Escape | Escape
| LoadItemTypes | LoadItemTypes
| LoadItemTypesSuccess | LoadItemTypesSuccess