Mirror navigator online flag in observable state

This commit is contained in:
Willem Dantuma
2020-07-22 08:52:41 +02:00
parent 31d01c75c5
commit 2790ae74e7
3 changed files with 42 additions and 4 deletions

View File

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