Skip to content

Commit

Permalink
Changing capitalization of 'profile' so it follows the naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
kc13greiner committed Jul 12, 2022
1 parent 43a12fe commit 6b12199
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/cloud/public/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ describe('Cloud Plugin', () => {
Object {
"href": "https://cloud.elastic.co/profile/alice",
"iconType": "user",
"label": "Edit Profile",
"label": "Edit profile",
"order": 100,
"setAsProfile": true,
},
Expand Down Expand Up @@ -564,7 +564,7 @@ describe('Cloud Plugin', () => {
Object {
"href": "https://cloud.elastic.co/profile/alice",
"iconType": "user",
"label": "Edit Profile",
"label": "Edit profile",
"order": 100,
"setAsProfile": true,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/cloud/public/user_menu_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const createUserMenuLinks = (config: CloudConfigType): UserMenuLink[] =>
if (baseUrl && profileUrl) {
userMenuLinks.push({
label: i18n.translate('xpack.cloud.userMenuLinks.profileLinkText', {
defaultMessage: 'Edit Profile',
defaultMessage: 'Edit profile',
}),
iconType: 'user',
href: getFullCloudUrl(baseUrl, profileUrl),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ describe('SecurityNavControl', () => {
type="user"
/>,
"name": <FormattedMessage
defaultMessage="Edit Profile"
defaultMessage="Edit profile"
id="xpack.security.navControlComponent.editProfileLinkText"
values={Object {}}
/>,
Expand Down Expand Up @@ -315,7 +315,7 @@ describe('SecurityNavControl', () => {
type="user"
/>,
"name": <FormattedMessage
defaultMessage="Edit Profile"
defaultMessage="Edit profile"
id="xpack.security.navControlComponent.editProfileLinkText"
values={Object {}}
/>,
Expand Down Expand Up @@ -384,7 +384,7 @@ describe('SecurityNavControl', () => {
`);
});

it('should not render Edit Profile for cloud user', async () => {
it('should not render Edit profile for cloud user', async () => {
useCurrentUserMock.mockReturnValue({
loading: false,
value: mockAuthenticatedUser({
Expand Down Expand Up @@ -421,7 +421,7 @@ describe('SecurityNavControl', () => {
`);
});

it('should render Edit Profile for non-cloud user', () => {
it('should render Edit profile for non-cloud user', () => {
useCurrentUserMock.mockReturnValue({
loading: false,
value: mockAuthenticatedUser({
Expand All @@ -446,7 +446,7 @@ describe('SecurityNavControl', () => {
type="user"
/>,
"name": <FormattedMessage
defaultMessage="Edit Profile"
defaultMessage="Edit profile"
id="xpack.security.navControlComponent.editProfileLinkText"
values={Object {}}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const SecurityNavControl: FunctionComponent<SecurityNavControlProps> = ({
name: (
<FormattedMessage
id="xpack.security.navControlComponent.editProfileLinkText"
defaultMessage="Edit Profile"
defaultMessage="Edit profile"
/>
),
icon: <EuiIcon type="user" size="m" />,
Expand Down

0 comments on commit 6b12199

Please sign in to comment.