forked from External/greenlight
Added a flash message if the getMeetings call times out (#2232)
This commit is contained in:
parent
3880e932bb
commit
68716bc6f3
|
@ -71,7 +71,13 @@ class AdminsController < ApplicationController
|
||||||
@order_column = params[:column] && params[:direction] != "none" ? params[:column] : "status"
|
@order_column = params[:column] && params[:direction] != "none" ? params[:column] : "status"
|
||||||
@order_direction = params[:direction] && params[:direction] != "none" ? params[:direction] : "DESC"
|
@order_direction = params[:direction] && params[:direction] != "none" ? params[:direction] : "DESC"
|
||||||
|
|
||||||
|
begin
|
||||||
meetings = all_running_meetings[:meetings]
|
meetings = all_running_meetings[:meetings]
|
||||||
|
rescue
|
||||||
|
flash[:alert] = I18n.t("administrator.rooms.timeout")
|
||||||
|
meetings = []
|
||||||
|
end
|
||||||
|
|
||||||
@order_column = "created_at" if meetings.empty?
|
@order_column = "created_at" if meetings.empty?
|
||||||
@running_room_bbb_ids = meetings.pluck(:meetingID)
|
@running_room_bbb_ids = meetings.pluck(:meetingID)
|
||||||
|
|
||||||
|
|
|
@ -173,6 +173,7 @@ en:
|
||||||
enabled: Always Enabled
|
enabled: Always Enabled
|
||||||
optional: Optional
|
optional: Optional
|
||||||
rooms:
|
rooms:
|
||||||
|
timeout: Due to the BigBlueButton Server request timing out, the information for status and participants may not be accurate
|
||||||
title: Server Rooms
|
title: Server Rooms
|
||||||
table:
|
table:
|
||||||
ended: "Ended: %{session}"
|
ended: "Ended: %{session}"
|
||||||
|
|
Loading…
Reference in New Issue