-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add organization initializer #11
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
Conversation
|
with the folder structure I though of having |
| @@ -0,0 +1,17 @@ | |||
| import { inject, provideAppInitializer } from '@angular/core'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing unit test, and if the jest thesholds allow for thets to pass it means we should put them higer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| try { | ||
| await envService.getEnvConfig() | ||
| } catch { | ||
| router.navigate(['new-organization']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to @nexus49 here let's have welcome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Implemented initializer that upon not retrieving any default organization redirects to the onboarding organization page