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

Fixes #1467 - Send useful filter label item data through components to Management Toolbar #1470

Merged
merged 10 commits into from
Jan 24, 2019
Merged

Fixes #1467 - Send useful filter label item data through components to Management Toolbar #1470

merged 10 commits into from
Jan 24, 2019

Conversation

carloslancha
Copy link
Contributor

No description provided.

@carloslancha carloslancha changed the title Fixes #1467 - Regen isomorphic snapshots Fixes #1467 - Send useful filter label item data through components to Management Toolbar Jan 23, 2019
Copy link
Contributor

@jbalsas jbalsas left a comment

Choose a reason for hiding this comment

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

Some minor changes... biggest one, I don't think we can make a solid API with label values. I think we should rely on the whole object

<div class="null"><span class="label label-dismissible component-label tbar-label"><span class="label-item label-item-expand"><div class="label-section">Category: Label 3</div></span><span class="label-item label-item-after"><button class="btn close"aria-label="close"type="button"><svg class="lexicon-icon lexicon-icon-times"focusable="false"role="presentation"><use xlink:href="icons.svg#times" /></svg></button></span></span></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

This snapshot seems weird :D

<li class="tbar-item"><div class="tbar-section"><div class="null"><span class="label label-dismissible component-label tbar-label"><span class="label-item label-item-expand"><div class="label-section">Label 1</div></span><span class="label-item label-item-after"><button class="btn close"aria-label="close"type="button"><svg class="lexicon-icon lexicon-icon-times"focusable="false"role="presentation"><use xlink:href="spritemap.svg#times" /></svg></button></span></span></div></div></li><li class="tbar-item tbar-item-expand"><div class="tbar-section"><div class="null"><span class="label label-dismissible component-label tbar-label"><span class="label-item label-item-expand"><div class="label-section">Label 2</div></span><span class="label-item label-item-after"><button class="btn close"aria-label="close"type="button"><svg class="lexicon-icon lexicon-icon-times"focusable="false"role="presentation"><use xlink:href="spritemap.svg#times" /></svg></button></span></span></div></div></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Here too, see div class="null"

@@ -37,6 +37,9 @@ class ClayResultsBar extends ClayComponent {
*/
_handleFilterLabelCloseClicked(event) {
return !this.emit({
data: {
label: this.filterLabels[event.target.data.labelId],
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will likely need more than the label value, as that can be localized or who know what else. We would be better off passing down the id, the whole list of label and any additional information we might need.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is already the entire label object.

@carloslancha
Copy link
Contributor Author

Already approved by @jbalsas. Merging.

@carloslancha carloslancha merged commit fd6634f into liferay:develop Jan 24, 2019
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