-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
28 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
import { Action } from '@ngrx/store'; | ||
import { Action, ActionsUnion, createAction } from '@ngrx/store'; | ||
|
||
export enum AuthActionTypes { | ||
Logout = '[Auth] Logout', | ||
LogoutConfirmation = '[Auth] Logout Confirmation', | ||
LogoutConfirmationDismiss = '[Auth] Logout Confirmation Dismiss', | ||
} | ||
|
||
export class Logout implements Action { | ||
readonly type = AuthActionTypes.Logout; | ||
} | ||
|
||
export class LogoutConfirmation implements Action { | ||
readonly type = AuthActionTypes.LogoutConfirmation; | ||
} | ||
|
||
export class LogoutConfirmationDismiss implements Action { | ||
readonly type = AuthActionTypes.LogoutConfirmationDismiss; | ||
} | ||
export const AuthActions = { | ||
logout: () => createAction(AuthActionTypes.Logout), | ||
logoutConfirmation: () => createAction(AuthActionTypes.LogoutConfirmation), | ||
logoutConfirmationDismiss: () => | ||
createAction(AuthActionTypes.LogoutConfirmationDismiss), | ||
}; | ||
|
||
export type AuthActionsUnion = | ||
| Logout | ||
| LogoutConfirmation | ||
| LogoutConfirmationDismiss; | ||
export type AuthActions = ActionsUnion<typeof AuthActions>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters