Skip to content

Commit

Permalink
Add some missing icons into automate simulation results tree
Browse files Browse the repository at this point in the history
Also display just a warning if an icon is missing

https://bugzilla.redhat.com/show_bug.cgi?id=1445089
  • Loading branch information
skateman committed Apr 25, 2017
1 parent f491b45 commit 40e2630
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/helpers/miq_ae_class_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def ae_field_fonticon(field)
'product product-array'
when 'password'
'product product-password'
when 'null coalescing'
when 'null coalescing', 'nil_class'
'fa fa-question'
when 'host'
'pficon pficon-screen'
Expand Down Expand Up @@ -116,8 +116,13 @@ def ae_field_fonticon(field)
'product product-state'
when 'element'
'product product-element'
when 'hash'
'fa fa-hashtag'
when 'key'
'pficon pficon-key'
else
raise NotImplementedError, "Missing fonticon for MiqAeField type #{field}"
Rails.logger.warn("Missing fonticon for MiqAeField type \"#{field}\"")
'fa fa-file-text-o'
end
end
end

0 comments on commit 40e2630

Please sign in to comment.