mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-22 12:51:08 +02:00
Cleanup
This commit is contained in:
parent
53599feff9
commit
875a933dc9
@ -46,7 +46,7 @@ class AvatarService
|
||||
}
|
||||
|
||||
/** @return array<string, string> */
|
||||
public function getMapping(): array
|
||||
public function getMappings(): array
|
||||
{
|
||||
return collect($this->schemas)->mapWithKeys(fn ($schema) => [$schema->getId() => $schema->getName()])->all();
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ class Settings extends Page implements HasForms
|
||||
Select::make('FILAMENT_AVATAR_PROVIDER')
|
||||
->label(trans('admin/setting.general.avatar_provider'))
|
||||
->native(false)
|
||||
->options($this->avatarService->getMapping())
|
||||
->options($this->avatarService->getMappings())
|
||||
->selectablePlaceholder(false)
|
||||
->default(env('FILAMENT_AVATAR_PROVIDER', config('panel.filament.avatar-provider'))),
|
||||
Toggle::make('FILAMENT_UPLOADABLE_AVATARS')
|
||||
|
Loading…
x
Reference in New Issue
Block a user