Skip to content

Commit

Permalink
remove list mode in active calls (#952)
Browse files Browse the repository at this point in the history
* remove list mode

* remove unnecessary as: :table option
  • Loading branch information
BigG1947 authored Apr 28, 2021
1 parent fa8374e commit 2926310
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions app/admin/realtime_data/active_calls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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

0 comments on commit 2926310

Please sign in to comment.