Skip to content

Commit

Permalink
Merge pull request #1153 from skateman/simulate-missing-icons
Browse files Browse the repository at this point in the history
Add some missing icons into automate simulation results tree
  • Loading branch information
h-kataria authored Apr 25, 2017
2 parents d8b695b + 40e2630 commit b6d814f
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 b6d814f

Please sign in to comment.