mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 23:08:37 +02:00
uncomment hintAction
This commit is contained in:
parent
2929b0a54e
commit
caf816071f
@ -148,9 +148,8 @@ class EditProfile extends BaseEditProfile
|
||||
->avatar()
|
||||
->acceptedFileTypes(['image/png'])
|
||||
->directory('avatars')
|
||||
->getUploadedFileNameForStorageUsing(fn () => $this->getUser()->id . '.png'),
|
||||
// TODO: wait for filament bug fix
|
||||
/*->hintAction(function (FileUpload $fileUpload) {
|
||||
->getUploadedFileNameForStorageUsing(fn () => $this->getUser()->id . '.png')
|
||||
->hintAction(function (FileUpload $fileUpload) {
|
||||
$path = $fileUpload->getDirectory() . '/' . $this->getUser()->id . '.png';
|
||||
|
||||
return Action::make('remove_avatar')
|
||||
@ -158,7 +157,7 @@ class EditProfile extends BaseEditProfile
|
||||
->iconButton()
|
||||
->hidden(fn () => !$fileUpload->getDisk()->exists($path))
|
||||
->action(fn () => $fileUpload->getDisk()->delete($path));
|
||||
}),*/
|
||||
}),
|
||||
]),
|
||||
Tab::make(trans('profile.tabs.oauth'))
|
||||
->icon('tabler-brand-oauth')
|
||||
|
Loading…
x
Reference in New Issue
Block a user