Welcome to mirror list, hosted at ThFree Co, Russian Federation.

alert_management_helper.rb « projects « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6aadc18ac3a85a1dc5dcefc6995c0f38c68519e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Projects::AlertManagementHelper
  def alert_management_data(current_user, project)
    {
      'index-path' => project_alert_management_index_path(project,
                                                        format: :json),
      'enable-alert-management-path' => project_settings_operations_path(project),
      'empty-alert-svg-path' => image_path('illustrations/alert-management-empty-state.svg'),
      'user-can-enable-alert-management' => 'false',
      'alert-management-enabled' => Feature.enabled?(:alert_management_minimal, project).to_s
    }
  end
end