disable update client username/password (#345)

* disable update client username/password

* fix application stt vendor for elevenlabs
This commit is contained in:
Hoan Luu Huu
2023-11-09 00:13:08 +07:00
committed by GitHub
parent bc9a2464fd
commit adafff7ec3
2 changed files with 5 additions and 3 deletions
@@ -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) => {
@@ -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)}
/>
</div>
@@ -165,6 +164,8 @@ export const ClientsForm = ({ client }: ClientsFormProps) => {
value={password}
placeholder="Password"
setValue={setPassword}
disabled={hasValue(client)}
autoComplete="off"
/>
</fieldset>
<fieldset>