Skip to content

fix(api): rename hideContainerWhenNoResults to autoHideContainer #475

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

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

vvo
Copy link
Contributor

@vvo vvo commented Nov 5, 2015

Mostly copy pasting

  • updated jsdoc
  • updated some widgets algorithm to hide/show (numeric widgets)
  • had to rename the decorators require to $decoratorHOC (High Order
    Component, the pattern we use).

fixes #407

BREAKING CHANGE: use autoHideContainer instead of
hideContainerWhenNoResults

@vvo vvo added the in progress label Nov 5, 2015
@vvo vvo force-pushed the fix/hideContainerWhenNoResults-autoHideContainer branch from f806bee to d619576 Compare November 5, 2015 13:23
+ updated jsdoc
+ updated some widgets algorithm to hide/show (numeric widgets)
+ had to rename the decorators require to $decoratorHOC (High Order
Component, the pattern we use).

fixes #407

BREAKING CHANGE: use autoHideContainer instead of
hideContainerWhenNoResults
@vvo vvo force-pushed the fix/hideContainerWhenNoResults-autoHideContainer branch from d619576 to 3f64bef Compare November 5, 2015 13:27
@vvo
Copy link
Contributor Author

vvo commented Nov 5, 2015

@jerskouille ?

@bobylito
Copy link
Contributor

bobylito commented Nov 6, 2015

👍 LGTM

bobylito added a commit that referenced this pull request Nov 6, 2015
…utoHideContainer

fix(api): rename hideContainerWhenNoResults to autoHideContainer
@bobylito bobylito merged commit e7cdb02 into develop Nov 6, 2015
@vvo vvo removed the in progress label Nov 6, 2015
@bobylito bobylito deleted the fix/hideContainerWhenNoResults-autoHideContainer branch November 6, 2015 01:45
@Jerska
Copy link
Member

Jerska commented Nov 6, 2015

👍

@@ -72,7 +72,7 @@ function numericRefinementList({
return option;
});

let hasNoResults = facetValues.length === 0;
let hasNoResults = results.nbHits === 0;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it be facetValues ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No because the facetValues are manually set thus they are always here (you always have facetValues)

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.

rename hideContainerWhenNoResults to autoHideContainer
3 participants