-
Notifications
You must be signed in to change notification settings - Fork 357
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
Reprioritize icons and images for GTLs, prefer images first #4198
Conversation
How will Generic Objects work? |
@Fryguy same as before:
The only difference is that in GTLs we will use 2 parameters instead of 3, same as in trees. (but yes, I had it swapped in the description ... sorry) |
8973992
to
499692b
Compare
I mixed up "picture" and "custom image", which is why I was confused....thanks! |
Right now, there are only 4 decorators which can return a But there are 6 classes using @skateman you sure we're not missing decorators for those two? |
@himdel the answer is very simple, if we don't have a decorator, we couldn't display those items in the UI using GTLs. If they have a different way of rendering, then probably the |
Um... unless that Please check :) EDIT: ... aah, never mind, seeing where that Still... this didn't use to be this way, the relation was a bit more direct. So maybe this PR doesn't break it, and some earlier one did. Either way, it's broken now. |
@epwinchell you also need the UI components PR to have this working... |
@himdel that |
OK, here's my take on this: The original GTL never used decorators, and always showed It feels like we're just arguing over when we broke it. |
I don't see any logic in the UI that can upload pictures for the |
This pull request is not mergeable. Please rebase and repush. |
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.
Tested. Looks good.
499692b
to
cfa947d
Compare
Checked commits skateman/manageiq-ui-classic@d5e2eed~...cfa947d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
When both a
fonticon
and afileicon
is defined for an item, the preferred one was thefonticon
, except of some special cases when there's apicture
attribute available. This was unnecessarily complicated and as all the unnecessary PNG files and their references have been removed, we can simplify this a little.So I'm proposing the same preference as we have for treeviews:
fileicon
overfonticon
and also dropping thepicture
attribute.UI components PR: ManageIQ/ui-components#308
@miq-bot add_reviewer @epwinchell
@miq-bot add_reviewer @karelhala
@miq-bot add_reviewer @martinpovolny
@miq-bot add_labels gaprindashvili/no, GTLs, graphics