Added itemdeleted event
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Willem Dantuma 2019-10-30 22:34:12 +01:00
parent 960db9e27a
commit 173be180ce
1 changed files with 9 additions and 0 deletions

View File

@ -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