From 55b913ceb7dbc565587eebc2890fdca3b5b3c17a Mon Sep 17 00:00:00 2001 From: Sascha Sommer Date: Thu, 8 Aug 2024 18:03:28 +0200 Subject: [PATCH] redesign #318: remove "Edit my Profile" personal menu entry https://git.wechange.de/gl/code/redesign/-/issues/318 --- cosinnus/api_frontend/views/navigation.py | 11 ----------- cosinnus/tests/view_tests/test_navigation_api.py | 1 - 2 files changed, 12 deletions(-) diff --git a/cosinnus/api_frontend/views/navigation.py b/cosinnus/api_frontend/views/navigation.py index 6f06183bc..21368ce07 100644 --- a/cosinnus/api_frontend/views/navigation.py +++ b/cosinnus/api_frontend/views/navigation.py @@ -912,16 +912,6 @@ class ProfileView(LanguageMenuItemMixin, APIView): 'badge': None, 'selected': False, }, - { - 'id': 'EditProfile', - 'label': 'Edit my Profile', - 'url': '/profile/edit/', - 'is_external': False, - 'icon': 'fa-gear', - 'image': None, - 'badge': None, - 'selected': False, - }, { 'id': 'NotificationPreferences', 'label': 'Notification Preferences', @@ -1016,7 +1006,6 @@ def get(self, request): ) profile_menu_items.extend( [ - MenuItem(_('Edit my Profile'), reverse('cosinnus:profile-edit'), 'fa-gear', id='EditProfile'), MenuItem( _('Notification Preferences'), reverse('cosinnus:notifications'), diff --git a/cosinnus/tests/view_tests/test_navigation_api.py b/cosinnus/tests/view_tests/test_navigation_api.py index 24436cfa9..7a85df7fd 100644 --- a/cosinnus/tests/view_tests/test_navigation_api.py +++ b/cosinnus/tests/view_tests/test_navigation_api.py @@ -431,7 +431,6 @@ def test_profile(self): [ MenuItem('My Profile', '/profile/', 'fa-circle-user', id='Profile'), MenuItem('Set up my Profile', '/setup/profile/', 'fa-pen', id='SetupProfile'), - MenuItem('Edit my Profile', '/profile/edit/', 'fa-gear', id='EditProfile'), MenuItem( 'Notification Preferences', '/profile/notifications/', 'fa-envelope', id='NotificationPreferences' ),