Add notification menu
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user