Add notification menu
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma
2021-02-11 11:44:34 +01:00
parent 39993e75da
commit 142a1c9e58
10 changed files with 199 additions and 7 deletions

View File

@@ -39,6 +39,8 @@ export const TASKPROGRESSEVENT = '[AppCommon] TaskProgressEvent';
export const DEVICEUPDATEEVENT = '[AppCommon] DeviceUpdateEvent';
export const NOTIFICATIONEVENT = '[AppCommon] NotificationEvent';
export const DELETEITEMS = '[AppCommon] DeleteItems';
export const DELETEITEMSSUCCESS = '[AppCommon] DeleteItemsSuccess';
@@ -62,6 +64,8 @@ export const TOGGLEACCOUNTMENU = '[AppCommon] ToggleAccountMenu';
export const TOGGLEAPPMENU = '[AppCommon] ToggleAppMenu';
export const TOGGLENOTIFICATIONMENU = '[AppCommon] ToggleNotificationMenu';
export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible';
export const ONLINE = '[AppCommon] Online';
@@ -232,6 +236,12 @@ export class DeviceUpdateEvent implements Action {
constructor(public itemCode: string, public attributes: any) { }
}
export class NotificationEvent implements Action {
readonly type = NOTIFICATIONEVENT;
constructor(public attributes: any) { }
}
export class DeleteItems implements Action {
readonly type = DELETEITEMS;
@@ -291,6 +301,12 @@ export class ToggleAppMenu implements Action {
constructor() { }
}
export class ToggleNotificationMenu implements Action {
readonly type = TOGGLENOTIFICATIONMENU;
constructor() { }
}
export class SetMenuVisible implements Action {
readonly type = SETMENUVISIBLE;
@@ -355,6 +371,8 @@ export type Actions = OpenModal
| Online
| Offline
| SetPageMode
| ToggleAppMenu;
| ToggleAppMenu
| ToggleNotificationMenu
| NotificationEvent;