2020-04-08 14:13:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Admin::IntegrationsController < Admin::ApplicationController
|
2020-04-22 19:07:51 +05:30
|
|
|
include IntegrationsActions
|
2021-01-03 14:25:43 +05:30
|
|
|
include ServicesHelper
|
|
|
|
|
|
|
|
feature_category :integrations
|
2020-04-08 14:13:33 +05:30
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
private
|
2020-04-08 14:13:33 +05:30
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
def find_or_initialize_non_project_specific_integration(name)
|
|
|
|
Service.find_or_initialize_non_project_specific_integration(name, instance: true)
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
def integrations_enabled?
|
2021-01-03 14:25:43 +05:30
|
|
|
instance_level_integrations?
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
def scoped_edit_integration_path(integration)
|
|
|
|
edit_admin_application_settings_integration_path(integration)
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
end
|