Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
profiledataservice
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasEbbinghaus25 committed Jun 11, 2024
1 parent f9c4d16 commit a12349e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/web/src/scenes/Profile/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
margin: 30px 0;
}

.profile-page-info-message {
color: red;
}

.profile-field label {
display: block;
color: white;
Expand Down
2 changes: 2 additions & 0 deletions src/main/web/src/scenes/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const ProfilePage = () => {
case 'username':
success = await updateUsername(userData.username);
localStorage.setItem('username', userData.username);
handleLogout();
break;
case 'email':
success = await updateEmail(userData.email);
Expand Down Expand Up @@ -203,6 +204,7 @@ export const ProfilePage = () => {
<button onClick={() => isEditing.username ? handleSaveChanges('username') : handleEdit('username')}>
{isEditing.username ? 'Save' : 'Edit'}
</button>
<p className="profile-page-info-message">If you want to change your user name, you will be logged out and must log in again for the change to take effect!</p>
</div>

{!disableEmailAndPasswordEdit && (
Expand Down

0 comments on commit a12349e

Please sign in to comment.