-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
entity id in rows #29582
entity id in rows #29582
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
@@ -1,4 +1,4 @@ | |||
<tr ng-repeat="(rowIndex, row) in $ctrl.results"> | |||
<tr ng-repeat="(rowIndex, row) in $ctrl.results" ng-attr-entity-id="{{ row.key || undefined }}"> |
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.
This looks good, although I think the || undefined
bit is redundant.
d76b4f7
to
18af191
Compare
@colemanw I made the attribute conditional because I thought it would reduce the markup. But now that I understand that it increases the markup, I made |
18af191
to
993871d
Compare
Great |
Overview
Adds an
entity-id
attribute when one exists to SK result rows.Before
No
entity-id
.After
Yes
entity-id
.Comments
Even when
entity-id
isn't rendered (e.g. when aggregating), theng-attr-entity-id
is still present. Is that due to a debug mode or something? I usedngAttr
because I thought it would be less verbose, but it's more verbose.