-
Notifications
You must be signed in to change notification settings - Fork 131
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
[RHINENG-663] - Add subtitle property in AllServices #2576
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2576 +/- ##
========================================
Coverage 57.72% 57.72%
========================================
Files 92 92
Lines 2775 2775
Branches 707 653 -54
========================================
Hits 1602 1602
- Misses 1059 1172 +113
+ Partials 114 1 -113
|
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.
Is it possible to use the product field for the subtitle here?
@AsToNlele unfortunately we can't as it would impact other tiles that do want to use the product as a subtitle and have the product defined in their links. I would suggest creating a new attribute inside the Chrome service as that instead.
e44fd49
to
7f06c74
Compare
I've added |
|
||
do not show bundle if the card title matches bundle title | ||
*/} | ||
<Text component="small">{subtitle ? subtitle : bundle !== title ? bundle : null}</Text> |
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.
Can you change this to not use multiple ternary statements? To something like
subtitle || (bundle !== title ? bundle : null)
RHINENG-663
Is it possible to use the
product
field for the subtitle here?At first I tried changing the bundle names, but that would not work for some ansible items
RedHatInsights/chrome-service-backend#228 depends on this PR