-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring to use userDto for validation errors
- Loading branch information
1 parent
6f8de61
commit 08ac4bc
Showing
12 changed files
with
162 additions
and
102 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,6 @@ | |
Cancel | ||
</a> | ||
</span> | ||
<span *ngIf="currentUser$ | async"> | ||
LOGIN FAILURE | ||
</span> | ||
</div> | ||
</div> | ||
</form> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { createAction, props } from "@ngrx/store"; | ||
import { User } from "../../user"; | ||
import { UserDto } from "../../user"; | ||
|
||
export const getUserByIdSuccess = createAction( | ||
'[User API] Get User by ID Success', | ||
props<{user: User}>() | ||
props<{userDto: UserDto}>() | ||
); | ||
|
||
export const getUserByIdFailure = createAction( | ||
'[User API] Get User by ID Failure', | ||
props<{error: string}>() | ||
props<{errorDto: UserDto}>() | ||
); | ||
|
||
export const createUserSuccess = createAction( | ||
'[User API] Create User Success', | ||
props<{user: User}>() | ||
props<{userDto: UserDto}>() | ||
); | ||
|
||
export const createUserFailure = createAction( | ||
'[User API] Create User Failure', | ||
props<{error: string}>() | ||
props<{errorDto: UserDto}>() | ||
); | ||
|
||
export const loginUserSuccess = createAction( | ||
'[User API] Login User Success', | ||
props<{user: User}>() | ||
props<{userDto: UserDto}>() | ||
); | ||
|
||
export const loginUserFailure = createAction( | ||
'[User API] Login User Failure', | ||
props<{error: string}>() | ||
props<{errorDto: UserDto}>() | ||
); |
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
Oops, something went wrong.