Commit ·
799ef6e
1
Parent(s): 18532dd
fix: Update sidebar
Browse files
lib/medicode_web/live/transcriptions_live/show.ex
CHANGED
|
@@ -145,7 +145,7 @@ defmodule MedicodeWeb.TranscriptionsLive.Show do
|
|
| 145 |
filename: "Untitled"
|
| 146 |
})
|
| 147 |
|
| 148 |
-
Medicode.TranscriptionSupervisor.start_transcription(new_transcription
|
| 149 |
|
| 150 |
socket
|
| 151 |
|> assign(:status, :streaming_audio)
|
|
@@ -221,6 +221,8 @@ defmodule MedicodeWeb.TranscriptionsLive.Show do
|
|
| 221 |
socket.assigns.transcription
|
| 222 |
end
|
| 223 |
|
|
|
|
|
|
|
| 224 |
summary_keywords = Transcriptions.list_transcription_summary_keywords(transcription.id)
|
| 225 |
finalized_codes = Transcriptions.list_transcription_finalized_codes(transcription.id)
|
| 226 |
|
|
@@ -250,6 +252,7 @@ defmodule MedicodeWeb.TranscriptionsLive.Show do
|
|
| 250 |
end
|
| 251 |
|
| 252 |
def handle_info({:transcription_started, _transcription}, socket) do
|
|
|
|
| 253 |
{:noreply, assign(socket, :status, :loading)}
|
| 254 |
end
|
| 255 |
|
|
|
|
| 145 |
filename: "Untitled"
|
| 146 |
})
|
| 147 |
|
| 148 |
+
Medicode.TranscriptionSupervisor.start_transcription(new_transcription)
|
| 149 |
|
| 150 |
socket
|
| 151 |
|> assign(:status, :streaming_audio)
|
|
|
|
| 221 |
socket.assigns.transcription
|
| 222 |
end
|
| 223 |
|
| 224 |
+
send_sidebar_update(socket)
|
| 225 |
+
|
| 226 |
summary_keywords = Transcriptions.list_transcription_summary_keywords(transcription.id)
|
| 227 |
finalized_codes = Transcriptions.list_transcription_finalized_codes(transcription.id)
|
| 228 |
|
|
|
|
| 252 |
end
|
| 253 |
|
| 254 |
def handle_info({:transcription_started, _transcription}, socket) do
|
| 255 |
+
send_sidebar_update(socket)
|
| 256 |
{:noreply, assign(socket, :status, :loading)}
|
| 257 |
end
|
| 258 |
|