From 292631058267bb97db9efcc3d797df8cea211169 Mon Sep 17 00:00:00 2001 From: BigG1947 <31384049+BigG1947@users.noreply.github.com> Date: Wed, 28 Apr 2021 08:45:55 +0300 Subject: [PATCH] remove list mode in active calls (#952) * remove list mode * remove unnecessary as: :table option --- app/admin/realtime_data/active_calls.rb | 26 +++---------------------- 1 file changed, 3 insertions(+), 23 deletions(-) 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