mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Preferences: Changed 'Edit profile' to 'Profile' (#61376)
* Changed 'Edit profile' to 'Profile' The profile is not always editable, e.g. when it is synec via OAuth, and all the other sections of the preferences are titled without a verb. * Fix frontend test
This commit is contained in:
parent
490a787d9d
commit
331fa686e0
@ -31,7 +31,7 @@ export const UserProfileEditForm: FC<Props> = ({ user, isSavingUser, updateProfi
|
||||
<Form onSubmit={onSubmitProfileUpdate} validateOn="onBlur">
|
||||
{({ register, errors }) => {
|
||||
return (
|
||||
<FieldSet label={<Trans i18nKey="user-profile.title">Edit profile</Trans>}>
|
||||
<FieldSet label={<Trans i18nKey="user-profile.title">Profile</Trans>}>
|
||||
<Field
|
||||
label={t('user-profile.fields.name-label', 'Name') + lockMessage}
|
||||
invalid={!!errors.name}
|
||||
|
@ -130,11 +130,11 @@ describe('UserProfileEditPage', () => {
|
||||
});
|
||||
|
||||
describe('when user has loaded', () => {
|
||||
it('should show edit profile form', async () => {
|
||||
it('should show profile form', async () => {
|
||||
await getTestContext();
|
||||
|
||||
const { name, email, username, saveProfile } = getSelectors();
|
||||
expect(screen.getByText(/edit profile/i)).toBeInTheDocument();
|
||||
expect(screen.getByText(/profile/i)).toBeInTheDocument();
|
||||
expect(name()).toBeInTheDocument();
|
||||
expect(name()).toHaveValue('Test User');
|
||||
expect(email()).toBeInTheDocument();
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "Name",
|
||||
"username-label": "Benutzername"
|
||||
},
|
||||
"title": "Profil bearbeiten"
|
||||
"title": "Profil"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Browser & Betriebssystem",
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "Name",
|
||||
"username-label": "Username"
|
||||
},
|
||||
"title": "Edit profile"
|
||||
"title": "Profile"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Browser & OS",
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "Nombre",
|
||||
"username-label": "Nombre de usuario"
|
||||
},
|
||||
"title": "Editar perfil"
|
||||
"title": "Perfil"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Navegador y sistema operativo",
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "Nom",
|
||||
"username-label": "Nom d’utilisateur"
|
||||
},
|
||||
"title": "Modifier le profil"
|
||||
"title": "Profil"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Navigateur et système d'exploitation",
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "Ńämę",
|
||||
"username-label": "Ůşęřʼnämę"
|
||||
},
|
||||
"title": "Ēđįŧ přőƒįľę"
|
||||
"title": "Přőƒįľę"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "ßřőŵşęř & ØŜ",
|
||||
|
@ -533,7 +533,7 @@
|
||||
"name-label": "姓名",
|
||||
"username-label": "用户名"
|
||||
},
|
||||
"title": "编辑简介"
|
||||
"title": "用户资料"
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "浏览器和操作系统",
|
||||
|
Loading…
Reference in New Issue
Block a user