-
Notifications
You must be signed in to change notification settings - Fork 63
[EMB-167] Use link-to for internal links #122
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
[EMB-167] Use link-to for internal links #122
Conversation
| }); | ||
|
|
||
| actions = { | ||
| ...this.actions, // from AnalyticsMixin |
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.
Nice! I didn't realize that this is possible.
00620ad to
81ba72f
Compare
jamescdavis
left a comment
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.
Looks good once conflicts are resolved.
| "bower_components" | ||
| "include": [ | ||
| "app", | ||
| "tests" |
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.
TY! I was going to do this as a separate PR.
|
|
||
| // TODO: When used in other apps, update to expect these as arguments or from the config | ||
| hostAppName: string = HOME_APP; | ||
| linksComponent: string = 'osf-navbar/home-links'; |
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 like this approach much better than the one "link builder for all the apps" helper.
jamescdavis
left a comment
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.
👍
Purpose
Use the
{{link-to}}component for all internal links in ember-osf-web. Don't reload the page if we don't have to.Summary of Changes
link-toto acceptariaLabelandonClickarguments, to preserve existing behaviorlink-towhile others are<a>new-osf-navbar=>osf-navbarnew-navbar-auth-dropdown=>osf-navbar/auth-dropdownbuild-secondary-nav-linkshelper replaced withosf-navbar/home-linkscomponenthost-app-namemixinget-display-namehelperSide Effects / Testing Notes
Ticket
https://openscience.atlassian.net/browse/EMB-167
Reviewer Checklist
CHANGELOG.md