match icons for S3 providers

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-15 18:29:18 +02:00
parent 2c502b34c1
commit 71aaef6338
61 changed files with 51 additions and 9 deletions
+20 -3
View File
@@ -98,7 +98,19 @@ export default function RemoteCreateDrawer({
}}
>
{(item) => (
<AutocompleteItem key={item.Value} textValue={item.Value}>
<AutocompleteItem
key={item.Value}
textValue={item.Value}
startContent={
option.Name === 'provider' && (
<img
src={`/icons/providers/${item.Value}.png`}
className="object-contain w-4 h-4"
alt={item.Value}
/>
)
}
>
{item.Help || item.Value}
</AutocompleteItem>
)}
@@ -183,6 +195,8 @@ export default function RemoteCreateDrawer({
await createRemote(name, type, parameters)
addRemote(name)
onClose()
setConfig({})
setShowMoreOptions(false)
await triggerTrayRebuild()
} catch (error) {
console.error('Failed to create remote:', error)
@@ -263,7 +277,7 @@ export default function RemoteCreateDrawer({
key={backend.Name}
startContent={
<img
src={`/icons/${backend.Prefix}.png`}
src={`/icons/backends/${backend.Prefix}.png`}
className="object-contain w-8 h-8"
alt={backend.Name}
/>
@@ -271,7 +285,10 @@ export default function RemoteCreateDrawer({
>
{backend.Description.includes('Compliant')
? `${backend.Description.split('Compliant')[0]} Compliant`
: backend.Description || backend.Name}
: backend.Description?.replace(
' (this is not Google Drive)',
''
) || backend.Name}
</SelectItem>
))}
</Select>