Skip to content

Commit

Permalink
Label has been deprecated and I need PR for day
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Dec 15, 2017
1 parent 9faa390 commit d4aaae8
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 d4aaae8

Please sign in to comment.