Skip to content

Commit

Permalink
Change the save message
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Nascimento committed May 17, 2024
1 parent 580ad11 commit 863b3d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'incorrect_password' => 'The password you entered was incorrect. Please try again.',
'user_load_error' => 'The authenticated user object must be an Eloquent model to allow the profile page to update it.',
'delete_account_card_description' => 'Once your account is deleted, all of your resources and data will be permanently erased. Before deleting your account, please download any data or information you wish to keep.',
'saved_successfully' => 'Your profile information has been saved successfully.',
];
1 change: 1 addition & 0 deletions resources/lang/pt_BR/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
'incorrect_password' => 'A senha que você digitou estava incorreta. Por favor, tente novamente.',
'user_load_error' => 'O objeto de usuário autenticado deve ser um modelo Eloquent para permitir que a página de perfil o atualize.',
'delete_account_card_description' => 'Depois que sua conta for excluída, todos os seus recursos e dados serão apagados permanentemente. Antes de excluir sua conta, faça o download de quaisquer dados ou informações que deseja manter.',
'saved_successfully' => 'Suas informações de perfil foram salvas com sucesso.',
];
4 changes: 3 additions & 1 deletion src/Pages/EditProfilePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ private function sendSuccessNotification(): void
{
Notification::make()
->success()
->title(__('filament-panels::pages/auth/edit-profile.notifications.saved.title'))
->title(__('filament-edit-profile::default.saved_successfully'))
->send();

redirect(request()?->header('Referer'));
}

private function sendErrorDeleteAccount(string $message): void
Expand Down

0 comments on commit 863b3d8

Please sign in to comment.