Skip to content

Commit

Permalink
Merge pull request #16671 from d-m-u/dialog_name_label_update_thing_f…
Browse files Browse the repository at this point in the history
…or_stats

Label has been deprecated and I need PR for day
  • Loading branch information
bdunne authored Dec 15, 2017
2 parents 9faa390 + d4aaae8 commit da44fe7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/dialog/container_template_service_dialog.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class Dialog
class ContainerTemplateServiceDialog
def self.create_dialog(label, parameters)
new.create_dialog(label, parameters)
def self.create_dialog(name, parameters)
new.create_dialog(name, parameters)
end

# This dialog is to be used by a container template service
def create_dialog(label, parameters)
Dialog.new(:label => label, :buttons => "submit,cancel").tap do |dialog|
def create_dialog(name, parameters)
Dialog.new(:name => name, :buttons => "submit,cancel").tap do |dialog|
tab = dialog.dialog_tabs.build(:display => "edit", :label => "Basic Information", :position => 0)
add_options_group(tab, 0)
add_parameters_group(tab, 1, parameters)
Expand Down

0 comments on commit da44fe7

Please sign in to comment.