|
@@ -914,21 +914,26 @@ export function Settings() {
|
|
|
|
|
|
{!accessStore.hideUserApiKey && (
|
|
|
<>
|
|
|
- <ListItem
|
|
|
- title={Locale.Settings.Access.CustomEndpoint.Title}
|
|
|
- subTitle={Locale.Settings.Access.CustomEndpoint.SubTitle}
|
|
|
- >
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- checked={accessStore.useCustomConfig}
|
|
|
- onChange={(e) =>
|
|
|
- accessStore.update(
|
|
|
- (access) =>
|
|
|
- (access.useCustomConfig = e.currentTarget.checked),
|
|
|
- )
|
|
|
- }
|
|
|
- ></input>
|
|
|
- </ListItem>
|
|
|
+ {
|
|
|
+ // Conditionally render the following ListItem based on clientConfig.isApp
|
|
|
+ !clientConfig?.isApp && ( // only show if isApp is false
|
|
|
+ <ListItem
|
|
|
+ title={Locale.Settings.Access.CustomEndpoint.Title}
|
|
|
+ subTitle={Locale.Settings.Access.CustomEndpoint.SubTitle}
|
|
|
+ >
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ checked={accessStore.useCustomConfig}
|
|
|
+ onChange={(e) =>
|
|
|
+ accessStore.update(
|
|
|
+ (access) =>
|
|
|
+ (access.useCustomConfig = e.currentTarget.checked),
|
|
|
+ )
|
|
|
+ }
|
|
|
+ ></input>
|
|
|
+ </ListItem>
|
|
|
+ )
|
|
|
+ }
|
|
|
{accessStore.useCustomConfig && (
|
|
|
<>
|
|
|
<ListItem
|