add notice when matching is completed

This commit is contained in:
Bilal
2020-09-15 16:15:51 +03:00
parent 28e0eb36b7
commit fb32746c81
8 changed files with 55 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ $(document).on "turbolinks:load", ->
when "video_status_update" then @showVideoStatusUpdate(data.content)
when "download_status_update" then @showDownloadStatusUpdate(data.content)
when "conference_recording_ready" then @showDownloadStatusUpdate(data.content)
when "appearance_matching_flash_message" then @showMatchingStatusUpdate(data.content)
showVideoStatusUpdate: (content) ->
$("[data-ujs-target='video-analysis-msg']").replaceWith content
@@ -24,3 +25,6 @@ $(document).on "turbolinks:load", ->
showDownloadStatusUpdate: (content) ->
$(".flash-message").html content
$(".toast").toast('show')
showMatchingStatusUpdate: (content) ->
$("#flash-message").replaceWith content