diff --git a/app/admin/realtime_data/active_calls.rb b/app/admin/realtime_data/active_calls.rb index 7a7b3159f..f4bd99e86 100644 --- a/app/admin/realtime_data/active_calls.rb +++ b/app/admin/realtime_data/active_calls.rb @@ -253,7 +253,9 @@ def apply_pagination(chain) end end - index do + index blank_slate_content: lambda { + GuiConfig::FILTER_MISSED_TEXT if GuiConfig.active_calls_require_filter + } do selectable_column actions do |resource| item 'Terminate', @@ -313,26 +315,4 @@ def apply_pagination(chain) column :node, :node_link column :pop, :pop_link end - - index as: :list_with_content, default: true, download_links: false, partial: 'shared/active_calls_top_chart', - blank_slate_content: lambda { - GuiConfig::FILTER_MISSED_TEXT if GuiConfig.active_calls_require_filter - } do - selectable_column - actions do |resource| - item 'Terminate', - url_for(action: :drop, id: resource.id), - method: :post, - class: 'member_link delete_link', - data: { confirm: I18n.t('active_admin.delete_confirmation') } - end - - column :customer, :customer_link - column :vendor, :vendor_link - column :duration - column :dst_number, :dst_prefix_routing - column :dst_network, :dst_network_link - column :origination_rate, :destination_next_rate - column :termination_rate, :dialpeer_next_rate - end end