From a3384b6ea6608296277fada9444e257826fd582a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 14 Oct 2016 02:45:20 +0200 Subject: Add "edit profile" link to dropdown on own profile --- app/assets/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 619605f63..f58a36d29 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 61c89313a..0f26b1e5a 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'])) { -- cgit