Commit 7461072f authored by Kamil Trzcinski's avatar Kamil Trzcinski

Update code to remove no longer needed changes

parent 7cee650d
...@@ -14,7 +14,7 @@ module Ci ...@@ -14,7 +14,7 @@ module Ci
before_validation :set_default_values before_validation :set_default_values
accepts_nested_attributes_for :trigger_schedule, allow_destroy: true accepts_nested_attributes_for :trigger_schedule
def set_default_values def set_default_values
self.token = SecureRandom.hex(15) if self.token.blank? self.token = SecureRandom.hex(15) if self.token.blank?
......
...@@ -31,9 +31,3 @@ ...@@ -31,9 +31,3 @@
= schedule_fields.text_field :ref, class: "form-control", title: 'Branch or tag is required.', placeholder: "master" = schedule_fields.text_field :ref, class: "form-control", title: 'Branch or tag is required.', placeholder: "master"
.help-block Existing branch name, tag .help-block Existing branch name, tag
= f.submit btn_text, class: "btn btn-save" = f.submit btn_text, class: "btn btn-save"
:javascript
var availableRefs = #{@project.repository.ref_names.to_json};
new NewBranchForm($('.js-new-pipeline-form'), availableRefs)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment