Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

User resolver #390

Merged
merged 5 commits into from Mar 19, 2017
Merged

User resolver #390

merged 5 commits into from Mar 19, 2017

Conversation

bex1
Copy link
Contributor

@bex1 bex1 commented Mar 19, 2017

🔪 User manager and auth manager.

User now resolved via resolver before init if there is a session.

Also added loading indicators on various components before data load etc.

When the language is changed and logged in -> user is reloaded ->whole page is dimmed with a loading indicator until user is resolved again.

@buren buren temporarily deployed to just-match-web-sandbox-pr-390 March 19, 2017 22:03 Inactive
@buren buren requested a deployment to just-match-web-sandbox-pr-390 March 19, 2017 22:10 Pending
@bex1 bex1 merged commit cea1e3e into master Mar 19, 2017
@buren buren removed the in progress label Mar 19, 2017
@burenbot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 1 fixed issue! 🎉

But beware that this branch is 1 commit behind the justarrived:master branch, and a review of an up to date branch would produce more accurate results.

You can see more details about this review at https://ebertapp.io/github/justarrived/just-match-web/pulls/390.

@bex1 bex1 deleted the user-resolver branch March 19, 2017 22:12
Copy link
Member

@buren buren left a comment

Choose a reason for hiding this comment

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

@bex1 A W E S O M E! Absolutely awesome! ❤️

import {Resolve} from '@angular/router';
import {User} from '../../models/user';
import {UserProxy} from '../../services/proxy/user-proxy.service';

@Injectable()
export class UserResolver implements Resolve<User> {
private readonly storageAuthorizationData: string = 'authorizationData';
private readonly storageSessionKey: string = 'sessionData';
Copy link
Member

Choose a reason for hiding this comment

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

fyi this will logout all users on deploy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, might want to change the string back, but I thought session was a better name 👍
@buren

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants