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

UI: Update list views when items have 0 count #809

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

jeff-phillips-18
Copy link
Contributor

Updates #690

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.609% when pulling 8b6737b on jeff-phillips-18:issues/690 into 4380201 on quipucords:master.

@coveralls
Copy link

coveralls commented Feb 22, 2018

Coverage Status

Coverage remained the same at 91.386% when pulling a9b4507 on jeff-phillips-18:issues/690 into 0816b98 on quipucords:master.

Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

Looking good, as noted by @jeff-phillips-18 minor error pops up, should be fixed in follow up PR.

if (count > 0) {
return (
<ListView.InfoItem className="list-view-info-item-icon-count">
<SimpleTooltip id={`${id}_tip`} tooltip={`${count} ${count === 1 ? tipSingular : tipPlural}`}>
Copy link
Member

Choose a reason for hiding this comment

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

Optional: the id string/template literals, looks like the id is always supposed to be a string, we worried about someone jamming a number in there? if so we could just flip tip_${id}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The propType is string. I could make it accept either, but if you pass an number you do get a console warning but it works OK.

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.

None yet

3 participants