forked from External/greenlight
Hide recording table when disabled through room config (#1988)
This commit is contained in:
@ -40,6 +40,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if render_recordings %>
|
||||
<% if render_recordings && !hide_recording_tables %>
|
||||
<%= render "shared/sessions", recordings: @public_recordings, pagy: @pagy, only_public: true, user_recordings: false, title: t("room.recordings") %>
|
||||
<% end %>
|
||||
|
@ -103,7 +103,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "shared/sessions", recordings: @recordings, pagy: @pagy, only_public: false, shared_room: @shared_room, user_recordings: false, title: t("room.recordings")%>
|
||||
<% unless hide_recording_tables %>
|
||||
<%= render "shared/sessions", recordings: @recordings, pagy: @pagy, only_public: false, shared_room: @shared_room, user_recordings: false, title: t("room.recordings")%>
|
||||
<% end %>
|
||||
|
||||
<%= render "shared/modals/delete_room_modal" %>
|
||||
|
||||
|
Reference in New Issue
Block a user