Skip to content

Modernize Route Tab#1016

Merged
RobbieTheWagner merged 2 commits intoemberjs:masterfrom
nummi:modernize-route-tab
Aug 30, 2019
Merged

Modernize Route Tab#1016
RobbieTheWagner merged 2 commits intoemberjs:masterfrom
nummi:modernize-route-tab

Conversation

@nummi
Copy link
Copy Markdown
Contributor

@nummi nummi commented Aug 28, 2019

  • @
  • this
  • action
  • on

Copy link
Copy Markdown
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

Just a few questions, but overall looking good!


export default Component.extend({
// passed as an attribute to the component
currentRoute: null,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we no longer want these defaults to null?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed these because sooner or later this will become a Glimmer component and currentRoute will live in the args hash.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm happy to put it back for now.

id="options-hideRoutes"
}}
<Input
@id="options-hideRoutes"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be id instead of @id? Assuming id is meant to be set on the element. Not sure if the input helper is a special case or not. Have you checked in the DOM to ensure the id is there and the input is working as expected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fair enough. I guess the input helper is a special case

id="options-hideSubstates"
}}
<Input
@id="options-hideSubstates"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same here


<div class="toolbar__search js-filter-views">
{{ui/toolbar-search-field value=searchValue}}
{{ui/toolbar-search-field value=this.searchValue}}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we make this <Ui::Toolbar etc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was going to take another pass and convert all the Ui components at one time.

@RobbieTheWagner RobbieTheWagner merged commit 64da67d into emberjs:master Aug 30, 2019
patricklx pushed a commit to patricklx/ember-inspector that referenced this pull request Sep 19, 2022
* Remove unused component template

* Modernize Route tab

- @
- this
- action
- on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants