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()
|
->avatar()
|
||||||
->acceptedFileTypes(['image/png'])
|
->acceptedFileTypes(['image/png'])
|
||||||
->directory('avatars')
|
->directory('avatars')
|
||||||
->getUploadedFileNameForStorageUsing(fn () => $this->getUser()->id . '.png'),
|
->getUploadedFileNameForStorageUsing(fn () => $this->getUser()->id . '.png')
|
||||||
// TODO: wait for filament bug fix
|
->hintAction(function (FileUpload $fileUpload) {
|
||||||
/*->hintAction(function (FileUpload $fileUpload) {
|
|
||||||
$path = $fileUpload->getDirectory() . '/' . $this->getUser()->id . '.png';
|
$path = $fileUpload->getDirectory() . '/' . $this->getUser()->id . '.png';
|
||||||
|
|
||||||
return Action::make('remove_avatar')
|
return Action::make('remove_avatar')
|
||||||
@ -158,7 +157,7 @@ class EditProfile extends BaseEditProfile
|
|||||||
->iconButton()
|
->iconButton()
|
||||||
->hidden(fn () => !$fileUpload->getDisk()->exists($path))
|
->hidden(fn () => !$fileUpload->getDisk()->exists($path))
|
||||||
->action(fn () => $fileUpload->getDisk()->delete($path));
|
->action(fn () => $fileUpload->getDisk()->delete($path));
|
||||||
}),*/
|
}),
|
||||||
]),
|
]),
|
||||||
Tab::make(trans('profile.tabs.oauth'))
|
Tab::make(trans('profile.tabs.oauth'))
|
||||||
->icon('tabler-brand-oauth')
|
->icon('tabler-brand-oauth')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user