-
Notifications
You must be signed in to change notification settings - Fork 315
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
Adding styles to new views #423
Conversation
[route]="state.router.route"></hab-side-nav> | ||
<section class="hab-main"> | ||
[route]="state.router.route" | ||
*ngIf="!hideNavCheck()"></hab-side-nav> |
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.
I don't think you need this to be a function. *ngIf="hideNav"
should work, and the function definition is not needed.
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.
Sweet, that worked perfectly - much simpler!
5ed43a4
to
4312b3d
Compare
@@ -162,6 +163,11 @@ export class AppComponent implements OnInit { | |||
// route data. | |||
router.subscribe(value => store.dispatch(routeChange(value))); |
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.
Can you combine these two together to be:
router.subscribe(value => {
this.hideNav = value === "sign-in";
store.dispatch(routeChange(value)));
});
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.
I've poked at this a few times and can't quite get it right... ok if we push it to a follow-up PR so that I can get all this UI work merged?
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.
Ok, but not sure I understand what the problem is. Are you getting some kind of error using the code I put in the comment above?
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.
Figured it out with a clearer head this morning... I had a couple of issues going on (lint error, needed to declare the hideNav variable, added if statement since return url now has params on it, etc.)
Speaking of the redirect url, it seems unexpected to return to the sign in/sign out screen... I would prefer they return to their Projects. Is that as simple as changing the redirect URL on github?
Thanks for the feedback on this!
@ryankeairns you'll need to rebase this guy! |
Making good progress catching up to @smith's latest work. I'll rebase in the morning and aim to get this merged tomorrow. |
3f059e3
to
825572c
Compare
* sign-up styles and alternative layout * styles on projects, forms, sign-in, misc global * remove hideNavCheck function * styles for switch, repo select, orgs, notfiications, add forms, etc * consolidate router subscribe statements * resolve linting, update logo * remove hideNav if statement
Going through and tidying up layouts and styles:
Note: I did some angular hacking in the AppComponent to remove the side nav from the sign-in view... I wanted to keep this particular screen solely focused on the act of signing in since this is a key metric we'd like to track (# of sign-ups).