From adafff7ec3439bd00f15fac4afb7eeceeff34a2d Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Thu, 9 Nov 2023 00:13:08 +0700 Subject: [PATCH] disable update client username/password (#345) * disable update client username/password * fix application stt vendor for elevenlabs --- .../internal/views/applications/speech-selection.tsx | 1 + src/containers/internal/views/clients/form.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/containers/internal/views/applications/speech-selection.tsx b/src/containers/internal/views/applications/speech-selection.tsx index ad3d3ea..0e7b0df 100644 --- a/src/containers/internal/views/applications/speech-selection.tsx +++ b/src/containers/internal/views/applications/speech-selection.tsx @@ -358,6 +358,7 @@ export const SpeechProviderSelection = ({ options={sttVendorOptions.filter( (vendor) => vendor.value != VENDOR_WELLSAID && + vendor.value != VENDOR_ELEVENLABS && vendor.value !== VENDOR_CUSTOM )} onChange={(e) => { diff --git a/src/containers/internal/views/clients/form.tsx b/src/containers/internal/views/clients/form.tsx index 4f01e11..035b69a 100644 --- a/src/containers/internal/views/clients/form.tsx +++ b/src/containers/internal/views/clients/form.tsx @@ -60,9 +60,6 @@ export const ClientsForm = ({ client }: ClientsFormProps) => { }); } else { putClient(client.data?.client_sid || "", { - account_sid: accountSid, - username: username, - ...(password && { password: password }), is_active: isActive, allow_direct_app_calling: allowDirectAppCalling, allow_direct_queue_calling: allowDirectQueueCalling, @@ -151,6 +148,8 @@ export const ClientsForm = ({ client }: ClientsFormProps) => { placeholder="user name" value={username} required={true} + disabled={hasValue(client)} + autoComplete="off" onChange={(e) => setUsername(e.target.value)} /> @@ -165,6 +164,8 @@ export const ClientsForm = ({ client }: ClientsFormProps) => { value={password} placeholder="Password" setValue={setPassword} + disabled={hasValue(client)} + autoComplete="off" />