about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/account_timeline/containers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-10 08:49:35 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-10 11:06:56 +0100
commitc4d2c729245fab1dda31d0de73be9bc03217b06a (patch)
tree86d51ac7c13d2b08fae534a44524c2ef8b131315 /app/javascript/flavours/glitch/features/account_timeline/containers
parent099b3011aafe417c87de0b566ae72836228d793f (diff)
[Glitch] Add option to open original page in dropdowns of remote content in web UI
Port ef582dc4f2fe53b08988faf8d51f567ac32e5b93 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/account_timeline/containers')
-rw-r--r--app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js
index a65463243..25bcd0119 100644
--- a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js
+++ b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js
@@ -161,6 +161,13 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
     }));
   },
 
+  onOpenAvatar (account) {
+    dispatch(openModal('IMAGE', {
+      src: account.get('avatar'),
+      alt: account.get('acct'),
+    }));
+  },
+
 });
 
 export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Header));