Skip to content

Commit

Permalink
Merge pull request #1716 from pkomanek/broken_title_for_a_new_automat…
Browse files Browse the repository at this point in the history
…e_button

Broken titles for automate buttons in new and edit dialog
(cherry picked from commit c3b796b)

https://bugzilla.redhat.com/show_bug.cgi?id=1479926
  • Loading branch information
martinpovolny authored and simaishi committed Aug 9, 2017
1 parent df267d5 commit a9af6c7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/controllers/application_controller/buttons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,13 @@ def group_new_edit(typ)
@layout = "miq_ae_automate_button"
@sb[:button_groups] = nil
@sb[:buttons] = nil
replace_right_cell(:action => "group_edit")

# Symbol selection based on active controller
if controller_path == 'miq_ae_customization'
replace_right_cell(:nodetype => 'group_edit')
else
replace_right_cell(:action => 'group_edit')
end
end

def button_new_edit(typ)
Expand All @@ -644,7 +650,13 @@ def button_new_edit(typ)
@layout = "miq_ae_automate_button"
@sb[:buttons] = nil
@sb[:button_groups] = nil
replace_right_cell(:action => "button_edit")

# Symbol selection based on active controller
if controller_path == 'miq_ae_customization'
replace_right_cell(:nodetype => 'button_edit')
else
replace_right_cell(:action => 'button_edit')
end
end

# Set form variables for button add/edit
Expand Down

0 comments on commit a9af6c7

Please sign in to comment.