2017-08-17 22:00:37 +05:30
|
|
|
module Projects
|
|
|
|
module Settings
|
|
|
|
class IntegrationsController < Projects::ApplicationController
|
|
|
|
include ServiceParams
|
|
|
|
|
|
|
|
before_action :authorize_admin_project!
|
|
|
|
layout "project_settings"
|
|
|
|
|
|
|
|
def show
|
|
|
|
@hooks = @project.hooks
|
|
|
|
@hook = ProjectHook.new
|
|
|
|
|
|
|
|
# Services
|
2018-11-08 19:23:39 +05:30
|
|
|
@services = @project.find_or_initialize_services(exceptions: service_exceptions)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Returns a list of services that should be hidden from the list
|
|
|
|
def service_exceptions
|
|
|
|
@project.disabled_services.dup
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|