Refactored logout
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma
2020-06-25 18:52:13 +02:00
parent f89209c555
commit fe2650c4fd
6 changed files with 30 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ export const INITROOTSUCCESS = '[Explorer] InitRootSuccess';
export const OPENMODAL = '[AppCommon] OpenModal';
export const CLOSEMODAL = '[AppCommon] CloseModal';
export const LOGIN = '[AppCommon] Login';
export const LOGOUT = '[AppCommon] Logout';
export const ESCAPE = '[AppCommon] Escape';
export const LOADITEMTYPES = '[AppCommon] LoadItemTypes';
@@ -116,6 +117,12 @@ export class Login implements Action {
constructor(public url: string) { }
}
export class Logout implements Action {
readonly type = LOGOUT;
constructor() { }
}
export class Escape implements Action {
readonly type = ESCAPE;
@@ -247,6 +254,7 @@ export type Actions = OpenModal
| InitRootSuccess
| CloseModal
| Login
| Logout
| ItemChangedEvent
| ItemAddedEvent
| ItemDeletedEvent
@@ -273,3 +281,4 @@ export type Actions = OpenModal
| InitUserPackagesSuccess
| ToggleAccountMenu;