Mirror navigator online flag in observable state
This commit is contained in:
		| @@ -58,6 +58,10 @@ export const TOGGLEACCOUNTMENU = '[AppCommon] ToggleAccountMenu'; | ||||
|  | ||||
| export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible'; | ||||
|  | ||||
| export const ONLINE = '[AppCommon] Online'; | ||||
|  | ||||
| export const OFFLINE = '[AppCommon] Offline'; | ||||
|  | ||||
| export class InitUser implements Action { | ||||
|   readonly type = INITUSER; | ||||
|  | ||||
| @@ -254,6 +258,18 @@ export class SetMenuVisible implements Action { | ||||
|  | ||||
|   constructor(public visible:boolean) { } | ||||
| } | ||||
|  | ||||
| export class Online implements Action { | ||||
|   readonly type = ONLINE; | ||||
|  | ||||
|   constructor() { } | ||||
| } | ||||
|  | ||||
| export class Offline implements Action { | ||||
|   readonly type = OFFLINE; | ||||
|  | ||||
|   constructor() { } | ||||
| } | ||||
|    | ||||
|  | ||||
| export type Actions = OpenModal | ||||
| @@ -287,6 +303,8 @@ export type Actions = OpenModal | ||||
|   | SetMenuVisible | ||||
|   | InitUserPackagesSuccess | ||||
|   | ToggleAccountMenu | ||||
|   | CloseAll; | ||||
|   | CloseAll | ||||
|   | Online | ||||
|   | Offline; | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user