add notice when matching is completed
This commit is contained in:
@@ -33,4 +33,15 @@ class ProjectsChannel < ApplicationCable::Channel
|
||||
content = ApplicationController.render partial: 'application/flash', locals: { flash: flash }
|
||||
broadcast_to project, event: :conference_recording_ready, content: content
|
||||
end
|
||||
|
||||
def self.appearance_matching_flash_message(project, message, flash_type = :notice)
|
||||
if (flash_type == :notice)
|
||||
flash = OpenStruct.new notice: message
|
||||
else
|
||||
flash = OpenStruct.new alert: message
|
||||
end
|
||||
content = ApplicationController.render partial: 'application/flash', locals: { flash: flash }
|
||||
|
||||
broadcast_to project, event: :appearance_matching_flash_message, content: content
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user