Commit
•
dc67aef
1
Parent(s):
fcef16d
chore!: Disable audio recording buttons for now
Browse files
lib/medical_transcription_web/components/components.ex
CHANGED
@@ -27,8 +27,10 @@ defmodule MedicalTranscriptionWeb.Components do
|
|
27 |
<div class="w-full px-4 py-[19px] rounded-[10px] flex items-center bg-light-divider">
|
28 |
<button
|
29 |
type="button"
|
|
|
30 |
phx-click="toggle_recording"
|
31 |
-
|
|
|
32 |
>
|
33 |
<.icon name="hero-microphone" class="w-6 h-6" />
|
34 |
</button>
|
@@ -132,7 +134,12 @@ defmodule MedicalTranscriptionWeb.Components do
|
|
132 |
# Renders the record button within the result_heading component
|
133 |
defp record_button_in_heading(assigns) when assigns.status == :streaming_audio do
|
134 |
~H"""
|
135 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
136 |
<.icon name="hero-microphone" class="animate-pulse" />
|
137 |
</button>
|
138 |
"""
|
@@ -140,7 +147,12 @@ defmodule MedicalTranscriptionWeb.Components do
|
|
140 |
|
141 |
defp record_button_in_heading(assigns) do
|
142 |
~H"""
|
143 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
144 |
<.icon name="hero-microphone" />
|
145 |
</button>
|
146 |
"""
|
|
|
27 |
<div class="w-full px-4 py-[19px] rounded-[10px] flex items-center bg-light-divider">
|
28 |
<button
|
29 |
type="button"
|
30 |
+
disabled
|
31 |
phx-click="toggle_recording"
|
32 |
+
title="Not available"
|
33 |
+
class="cursor-not-allowed mr-2 h-full px-3 py-2.5 rounded-lg border border-emerald-300 bg-emerald-200"
|
34 |
>
|
35 |
<.icon name="hero-microphone" class="w-6 h-6" />
|
36 |
</button>
|
|
|
134 |
# Renders the record button within the result_heading component
|
135 |
defp record_button_in_heading(assigns) when assigns.status == :streaming_audio do
|
136 |
~H"""
|
137 |
+
<button
|
138 |
+
disabled
|
139 |
+
phx-click="toggle_recording"
|
140 |
+
title="Not available"
|
141 |
+
class="cursor-not-allowed mr-6 px-4 py-3 bg-red-200 rounded-lg"
|
142 |
+
>
|
143 |
<.icon name="hero-microphone" class="animate-pulse" />
|
144 |
</button>
|
145 |
"""
|
|
|
147 |
|
148 |
defp record_button_in_heading(assigns) do
|
149 |
~H"""
|
150 |
+
<button
|
151 |
+
disabled
|
152 |
+
phx-click="toggle_recording"
|
153 |
+
title="Not available"
|
154 |
+
class="cursor-not-allowed mr-6 px-4 py-3 bg-emerald-200 rounded-lg"
|
155 |
+
>
|
156 |
<.icon name="hero-microphone" />
|
157 |
</button>
|
158 |
"""
|