about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/account_timeline/components/header.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-07 10:14:31 +0200
committerGitHub <noreply@github.com>2022-10-07 10:14:31 +0200
commit7fb738c8372a700e1b42534cb202005b8c73b946 (patch)
tree3ec4b6233b492fc86d1003cda0770641e47f2984 /app/javascript/mastodon/features/account_timeline/components/header.js
parent99a43f0282d5115b75a564205ca7d2db31a3a945 (diff)
Add interaction modal to logged-out web UI (#19306)
Diffstat (limited to 'app/javascript/mastodon/features/account_timeline/components/header.js')
-rw-r--r--app/javascript/mastodon/features/account_timeline/components/header.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/account_timeline/components/header.js b/app/javascript/mastodon/features/account_timeline/components/header.js
index f9838442f..f31848f41 100644
--- a/app/javascript/mastodon/features/account_timeline/components/header.js
+++ b/app/javascript/mastodon/features/account_timeline/components/header.js
@@ -23,6 +23,7 @@ export default class Header extends ImmutablePureComponent {
     onEndorseToggle: PropTypes.func.isRequired,
     onAddToList: PropTypes.func.isRequired,
     onChangeLanguages: PropTypes.func.isRequired,
+    onInteractionModal: PropTypes.func.isRequired,
     hideTabs: PropTypes.bool,
     domain: PropTypes.string.isRequired,
     hidden: PropTypes.bool,
@@ -96,6 +97,10 @@ export default class Header extends ImmutablePureComponent {
     this.props.onChangeLanguages(this.props.account);
   }
 
+  handleInteractionModal = () => {
+    this.props.onInteractionModal(this.props.account);
+  }
+
   render () {
     const { account, hidden, hideTabs } = this.props;
 
@@ -123,6 +128,7 @@ export default class Header extends ImmutablePureComponent {
           onAddToList={this.handleAddToList}
           onEditAccountNote={this.handleEditAccountNote}
           onChangeLanguages={this.handleChangeLanguages}
+          onInteractionModal={this.handleInteractionModal}
           domain={this.props.domain}
           hidden={hidden}
         />