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

Tidy up Promise tab #1038

Merged
merged 3 commits into from
Sep 25, 2019
Merged

Conversation

nummi
Copy link
Collaborator

@nummi nummi commented Sep 23, 2019

@, this, </>, action,etc.

- @, this, </>, action, etc.
@@ -23,26 +23,26 @@
<Ui::ToolbarDivider />

<button
class="{{if noFilter "active"}} toolbar__radio toolbar__radio--first js-filter"
{{action "setFilter" "all"}}
class="{{if (eq this.filter "all") "active"}} toolbar__radio toolbar__radio--first js-filter"
Copy link
Member

Choose a reason for hiding this comment

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

🔥

class=(concat "list__cell_main " expandedClass)
style=labelStyle
on-click=(action toggleExpand model)
{{#@list.cell
Copy link
Member

Choose a reason for hiding this comment

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

Was this @ on purpose? I suppose it is valid, but looks odd having #@

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It looks terrible :-P. But list is passed in that way, right? Maybe we should get a consult from an expert?

Copy link
Member

Choose a reason for hiding this comment

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

Does angle bracket syntax work here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep 👍

Copy link
Member

Choose a reason for hiding this comment

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

Nice! That looks much better 😃

@model={{content}}
@filter={{this.filter}}
@effectiveSearch={{this.effectiveSearch}}
@toggleExpand={{fn this.toggleExpand content}}
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious why only two of the actions needed content passed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like to keep the components as dumb as possible but maybe consistency should win here.

Copy link
Member

Choose a reason for hiding this comment

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

If only two need it, that's fine. I just wanted some clarity.

sendValueToConsole=(action "sendValueToConsole")
list=list
}}
<PromiseItem
Copy link
Member

Choose a reason for hiding this comment

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

Fancy!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. 😆

@nummi
Copy link
Collaborator Author

nummi commented Sep 24, 2019

code climate 🤷‍♂

@RobbieTheWagner RobbieTheWagner merged commit d6a75ca into emberjs:master Sep 25, 2019
patricklx pushed a commit to patricklx/ember-inspector that referenced this pull request Sep 19, 2022
* Tidy up Promise tab

- @, this, </>, action, etc.

* Consistent action passing to PromiseItem

* Angle bracket for promise table cells
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.

3 participants