Removed unused Service#disabled_title
methods
This commit is contained in:
parent
7834f63c07
commit
3185b87c74
4 changed files with 0 additions and 19 deletions
|
@ -159,11 +159,6 @@ class JiraService < IssueTrackerService
|
|||
add_comment(data, jira_issue)
|
||||
end
|
||||
|
||||
# reason why service cannot be tested
|
||||
def disabled_title
|
||||
"Please fill in Password and Username."
|
||||
end
|
||||
|
||||
def test(_)
|
||||
result = test_settings
|
||||
success = result.present?
|
||||
|
|
|
@ -39,10 +39,6 @@ class PipelinesEmailService < Service
|
|||
project.pipelines.any?
|
||||
end
|
||||
|
||||
def disabled_title
|
||||
'Please setup a pipeline on your repository.'
|
||||
end
|
||||
|
||||
def test_data(project, user)
|
||||
data = Gitlab::DataBuilder::Pipeline.build(project.pipelines.last)
|
||||
data[:user] = user.hook_attrs
|
||||
|
|
|
@ -151,11 +151,6 @@ class Service < ActiveRecord::Base
|
|||
true
|
||||
end
|
||||
|
||||
# reason why service cannot be tested
|
||||
def disabled_title
|
||||
"Please setup a project repository."
|
||||
end
|
||||
|
||||
# Provide convenient accessor methods
|
||||
# for each serialized property.
|
||||
# Also keep track of updated properties in a similar way as ActiveModel::Dirty
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
.footer-block.row-content-block
|
||||
= service_save_button(@service)
|
||||
|
||||
- if @service.valid? && @service.activated?
|
||||
- unless @service.can_test?
|
||||
- disabled_class = 'disabled'
|
||||
- disabled_title = @service.disabled_title
|
||||
|
||||
= link_to 'Cancel', project_settings_integrations_path(@project), class: 'btn btn-cancel'
|
||||
|
||||
- if lookup_context.template_exists?('show', "projects/services/#{@service.to_param}", true)
|
||||
|
|
Loading…
Reference in a new issue