20 lines
655 B
Ruby
20 lines
655 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Projects::AlertManagementHelper
|
|
def alert_management_data(current_user, project)
|
|
{
|
|
'project-path' => project.full_path,
|
|
'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
|
|
|
|
def alert_management_detail_data(project_path, alert_id)
|
|
{
|
|
'alert-id' => alert_id,
|
|
'project-path' => project_path
|
|
}
|
|
end
|
|
end
|