From 6b12199bfc6cf2f3905c7dd3fe7ca4c314ce3254 Mon Sep 17 00:00:00 2001 From: Kurt Greiner Date: Tue, 12 Jul 2022 09:47:00 -0400 Subject: [PATCH] Changing capitalization of 'profile' so it follows the naming convention --- x-pack/plugins/cloud/public/plugin.test.ts | 4 ++-- x-pack/plugins/cloud/public/user_menu_links.ts | 2 +- .../public/nav_control/nav_control_component.test.tsx | 10 +++++----- .../public/nav_control/nav_control_component.tsx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/cloud/public/plugin.test.ts b/x-pack/plugins/cloud/public/plugin.test.ts index 1d21a9d2f537ad..180db8a382bb64 100644 --- a/x-pack/plugins/cloud/public/plugin.test.ts +++ b/x-pack/plugins/cloud/public/plugin.test.ts @@ -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, }, @@ -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, }, diff --git a/x-pack/plugins/cloud/public/user_menu_links.ts b/x-pack/plugins/cloud/public/user_menu_links.ts index 67c6bbaacb5cf8..e29736e215e0d5 100644 --- a/x-pack/plugins/cloud/public/user_menu_links.ts +++ b/x-pack/plugins/cloud/public/user_menu_links.ts @@ -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), diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx b/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx index e435123db81fc2..b67d7b773b28a7 100644 --- a/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx +++ b/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx @@ -201,7 +201,7 @@ describe('SecurityNavControl', () => { type="user" />, "name": , @@ -315,7 +315,7 @@ describe('SecurityNavControl', () => { type="user" />, "name": , @@ -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({ @@ -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({ @@ -446,7 +446,7 @@ describe('SecurityNavControl', () => { type="user" />, "name": , diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.tsx b/x-pack/plugins/security/public/nav_control/nav_control_component.tsx index bfd672dda4a0c5..d7fdcf0f55b3ea 100644 --- a/x-pack/plugins/security/public/nav_control/nav_control_component.tsx +++ b/x-pack/plugins/security/public/nav_control/nav_control_component.tsx @@ -102,7 +102,7 @@ export const SecurityNavControl: FunctionComponent = ({ name: ( ), icon: ,