Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added user name #66

Merged
merged 5 commits into from
Feb 22, 2021
Merged

added user name #66

merged 5 commits into from
Feb 22, 2021

Conversation

YuraSimonyan
Copy link
Contributor

No description provided.

}

ngOnInit(): void {
this.store.dispatch(new CheckAuth())
this.store.dispatch(new CheckAuth());
this.isAuthorized$.subscribe(name => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this logic under checkAuth action

@@ -22,9 +25,13 @@ export class UserRegistrationState {
public http: HttpClient) {}

@Selector()
static isAuthorized(state: UserRegistrationStateModel) {
static isAuthorized(state: UserRegistrationStateModel): any {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it is boolean

return state.isAuthorized;
}
@Selector()
static userName(state: UserRegistrationStateModel): any {
return state.userName;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string

<mat-icon class="icon-message"> email</mat-icon>
</i>
</button>

<button mat-button [matMenuTriggerFor]="log">
<h1>{{user.firstName}}</h1>
<h1>{{userName$ | async}}</h1>
</button>
<mat-menu #log="matMenu">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add role support

@YuraSimonyan YuraSimonyan merged commit 6bcbd35 into develop Feb 22, 2021
@YuraSimonyan YuraSimonyan deleted the AddRoles#57 branch February 22, 2021 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants