allow custom S3 endpoint

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-06 22:48:20 +02:00
parent 6ec402c6e9
commit d04f853f06
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -83,7 +83,11 @@ export default function RemoteCreateDrawer({
</div>
)
case 'string': {
if (option.Examples && option.Examples.length > 0) {
if (
!(config?.provider === 'Other' && option.Name === 'endpoint') &&
option.Examples &&
option.Examples.length > 0
) {
return (
<Autocomplete
id={fieldId}
@@ -278,10 +282,10 @@ export default function RemoteCreateDrawer({
selectedKeys={[config.type]}
onChange={handleTypeChange}
isRequired={true}
itemHeight={42}
>
{backends.map((backend) => (
<SelectItem
className="h-12"
key={backend.Name}
startContent={
<img
+6 -2
View File
@@ -91,7 +91,11 @@ export default function RemoteEditDrawer({
</div>
)
case 'string': {
if (option.Examples && option.Examples.length > 0) {
if (
!(config?.provider === 'Other' && option.Name === 'endpoint') &&
option.Examples &&
option.Examples.length > 0
) {
return (
<Autocomplete
id={fieldId}
@@ -254,10 +258,10 @@ export default function RemoteEditDrawer({
placeholder="Select Type"
selectedKeys={[config.type]}
isDisabled={true}
itemHeight={42}
>
{backends.map((backend) => (
<SelectItem
className="h-12"
key={backend.Name}
startContent={
<img