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

Addressing problems with nav-entries with query params #190

Merged
merged 3 commits into from
Dec 2, 2016

Conversation

srowhani
Copy link
Contributor

@srowhani srowhani commented Nov 30, 2016

This project uses semver, please check the scope of this pr:

  • #patch# - backwards-compatible bug fix
  • #minor# - adding functionality in a backwards-compatible manner
  • #major# - incompatible API change

CHANGELOG

  • Changes to css to show active state provided by link-to
  • Add property params, of type hash that abuses ember's LinkTo Components way of parsing query params to allow for dynamic query parameters.

@coveralls
Copy link

coveralls commented Nov 30, 2016

Coverage Status

Changes Unknown when pulling 846f526 on srowhani:feature/query-params into ** on ciena-frost:master**.

@@ -21,6 +22,31 @@ export default Controller.extend({
clearDuration: 1000
})
},
init () {
this._super(...arguments)
let customRouteObject = Ember.Object.extend({
Copy link
Contributor

Choose a reason for hiding this comment

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

we expect the user to override the init hook to get custom route with query params? Doesn't seem the nicest way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just there as an example to illustrate adding routes dynamically, and updating a given route when certain properties are recomputed (ex. query params).
Doesn't have to happen on the init hook.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 08a70a6 on srowhani:feature/query-params into ** on ciena-frost:master**.

@srowhani srowhani merged commit 3bccf8e into ciena-frost:master Dec 2, 2016
@sglanzer-deprecated
Copy link
Contributor

Sorry I didn't get around to this sooner - thanks for doing review Roxanne - looks good, thanks Seena

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

Successfully merging this pull request may close these issues.

None yet

5 participants