Refactored logout
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:
@@ -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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user