mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
Profile: Rename profile page from preferences to profile (#61777)
* Rename preferences to Profile * Fixed tests and ran i18 extract
This commit is contained in:
parent
e5e8bb4dea
commit
38d3d1c02b
@ -279,7 +279,7 @@ func (s *ServiceImpl) getProfileNode(c *models.ReqContext) *navtree.NavLink {
|
||||
|
||||
children := []*navtree.NavLink{
|
||||
{
|
||||
Text: "Preferences", Id: "profile/settings", Url: s.cfg.AppSubURL + "/profile", Icon: "sliders-v-alt",
|
||||
Text: "Profile", Id: "profile/settings", Url: s.cfg.AppSubURL + "/profile", Icon: "sliders-v-alt",
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ export function getNavTitle(navId: string | undefined) {
|
||||
case 'help':
|
||||
return t('nav.help.title', 'Help');
|
||||
case 'profile/settings':
|
||||
return t('nav.profile/settings.title', 'Preferences');
|
||||
return t('nav.profile/settings.title', 'Profile');
|
||||
case 'profile/notifications':
|
||||
return t('nav.profile/notifications.title', 'Notification history');
|
||||
case 'profile/password':
|
||||
|
@ -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">Profile</Trans>}>
|
||||
<FieldSet>
|
||||
<Field
|
||||
label={t('user-profile.fields.name-label', 'Name') + lockMessage}
|
||||
invalid={!!errors.name}
|
||||
|
@ -134,7 +134,6 @@ describe('UserProfileEditPage', () => {
|
||||
await getTestContext();
|
||||
|
||||
const { name, email, username, saveProfile } = getSelectors();
|
||||
expect(screen.getByText(/profile/i)).toBeInTheDocument();
|
||||
expect(name()).toBeInTheDocument();
|
||||
expect(name()).toHaveValue('Test User');
|
||||
expect(email()).toBeInTheDocument();
|
||||
|
@ -555,8 +555,7 @@
|
||||
"name-error": "Name ist erforderlich",
|
||||
"name-label": "Name",
|
||||
"username-label": "Benutzername"
|
||||
},
|
||||
"title": "Profil"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Browser & Betriebssystem",
|
||||
|
@ -285,7 +285,7 @@
|
||||
"title": "Change password"
|
||||
},
|
||||
"profile/settings": {
|
||||
"title": "Preferences"
|
||||
"title": "Profile"
|
||||
},
|
||||
"profile/switch-org": "Switch organization",
|
||||
"scenes": {
|
||||
@ -555,8 +555,7 @@
|
||||
"name-error": "Name is required",
|
||||
"name-label": "Name",
|
||||
"username-label": "Username"
|
||||
},
|
||||
"title": "Profile"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Browser & OS",
|
||||
|
@ -555,8 +555,7 @@
|
||||
"name-error": "El nombre es obligatorio",
|
||||
"name-label": "Nombre",
|
||||
"username-label": "Nombre de usuario"
|
||||
},
|
||||
"title": "Perfil"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Navegador y sistema operativo",
|
||||
|
@ -555,8 +555,7 @@
|
||||
"name-error": "Un nom est obligatoire",
|
||||
"name-label": "Nom",
|
||||
"username-label": "Nom d’utilisateur"
|
||||
},
|
||||
"title": "Profil"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "Navigateur et système d'exploitation",
|
||||
|
@ -285,7 +285,7 @@
|
||||
"title": "Cĥäʼnģę päşşŵőřđ"
|
||||
},
|
||||
"profile/settings": {
|
||||
"title": "Přęƒęřęʼnčęş"
|
||||
"title": "Přőƒįľę"
|
||||
},
|
||||
"profile/switch-org": "Ŝŵįŧčĥ őřģäʼnįžäŧįőʼn",
|
||||
"scenes": {
|
||||
@ -555,8 +555,7 @@
|
||||
"name-error": "Ńämę įş řęqūįřęđ",
|
||||
"name-label": "Ńämę",
|
||||
"username-label": "Ůşęřʼnämę"
|
||||
},
|
||||
"title": "Přőƒįľę"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "ßřőŵşęř & ØŜ",
|
||||
|
@ -555,8 +555,7 @@
|
||||
"name-error": "姓名是必填项",
|
||||
"name-label": "姓名",
|
||||
"username-label": "用户名"
|
||||
},
|
||||
"title": "用户资料"
|
||||
}
|
||||
},
|
||||
"user-session": {
|
||||
"browser-column": "浏览器和操作系统",
|
||||
|
Loading…
Reference in New Issue
Block a user