From 943c69c65d6410d1689d4494c9214c90654db56b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 6 Oct 2016 23:15:50 +0200 Subject: [PATCH] Fix #73 - Click on in-UI profile avatar/name to open public profile --- .../components/features/account/components/header.jsx | 11 +++++++---- app/controllers/settings_controller.rb | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/components/features/account/components/header.jsx b/app/assets/javascripts/components/features/account/components/header.jsx index b07a4a967..f14b6f480 100644 --- a/app/assets/javascripts/components/features/account/components/header.jsx +++ b/app/assets/javascripts/components/features/account/components/header.jsx @@ -21,11 +21,14 @@ const Header = React.createClass({ return (
-
- -
+ +
+ +
+ + {displayName} +
- {displayName} @{account.get('acct')}

{account.get('note')}

diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index e4a246ec9..299e1f3bc 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -9,7 +9,7 @@ class SettingsController < ApplicationController def update if @account.update(account_params) - redirect_to settings_path + redirect_to settings_path, notice: 'Changes successfully saved!' else render action: :show end