add delete button to the files in broadcast page

This commit is contained in:
Bilal
2020-07-22 18:16:14 +02:00
parent 8f13589c55
commit 86e441eebd
13 changed files with 116 additions and 26 deletions

View File

@@ -37,7 +37,7 @@ class BroadcastsChannel < ApplicationCable::Channel
end
def self.broadcast_file_upload_updates(broadcast, files, pagination_content)
files_content = ApplicationController.render partial: "broadcasts/file", collection: files
files_content = ApplicationController.render partial: "broadcasts/file", locals: { broadcast: broadcast }, collection: files
broadcast_to broadcast, {
event: :file_upload_update,