From a3384b6ea6608296277fada9444e257826fd582a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 14 Oct 2016 02:45:20 +0200 Subject: [PATCH] Add "edit profile" link to dropdown on own profile --- .../javascripts/components/components/dropdown_menu.jsx | 7 ++++++- .../components/features/account/components/action_bar.jsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/components/components/dropdown_menu.jsx b/app/assets/javascripts/components/components/dropdown_menu.jsx index 619605f633e..f58a36d296e 100644 --- a/app/assets/javascripts/components/components/dropdown_menu.jsx +++ b/app/assets/javascripts/components/components/dropdown_menu.jsx @@ -9,7 +9,12 @@ const DropdownMenu = ({ icon, items, size }) => { diff --git a/app/assets/javascripts/components/features/account/components/action_bar.jsx b/app/assets/javascripts/components/features/account/components/action_bar.jsx index 61c89313adf..0f26b1e5a10 100644 --- a/app/assets/javascripts/components/features/account/components/action_bar.jsx +++ b/app/assets/javascripts/components/features/account/components/action_bar.jsx @@ -19,7 +19,7 @@ const ActionBar = React.createClass({ let menu = []; if (account.get('id') === me) { - + menu.push({ text: 'Edit profile', href: '/settings/profile' }); } else if (account.getIn(['relationship', 'blocking'])) { menu.push({ text: 'Unblock', action: this.props.onBlock }); } else if (account.getIn(['relationship', 'following'])) {