@@ -18,6 +18,7 @@ const messages = defineMessages({
18
18
reply : { id : 'status.reply' , defaultMessage : 'Reply' } ,
19
19
reblog : { id : 'status.reblog' , defaultMessage : 'Boost' } ,
20
20
reblog_private : { id : 'status.reblog_private' , defaultMessage : 'Boost with original visibility' } ,
21
+ quote : { id : 'status.quote' , defaultMessage : 'Quote' } ,
21
22
cancel_reblog_private : { id : 'status.cancel_reblog_private' , defaultMessage : 'Unboost' } ,
22
23
cannot_reblog : { id : 'status.cannot_reblog' , defaultMessage : 'This post cannot be boosted' } ,
23
24
favourite : { id : 'status.favourite' , defaultMessage : 'Favourite' } ,
@@ -52,6 +53,7 @@ class ActionBar extends React.PureComponent {
52
53
onReblog : PropTypes . func . isRequired ,
53
54
onFavourite : PropTypes . func . isRequired ,
54
55
onBookmark : PropTypes . func . isRequired ,
56
+ onQuote : PropTypes . func . isRequired ,
55
57
onMute : PropTypes . func ,
56
58
onMuteConversation : PropTypes . func ,
57
59
onBlock : PropTypes . func ,
@@ -81,6 +83,10 @@ class ActionBar extends React.PureComponent {
81
83
this . props . onBookmark ( this . props . status , e ) ;
82
84
}
83
85
86
+ handleQuoteClick = ( e ) => {
87
+ this . props . onQuote ( this . props . status ) ;
88
+ }
89
+
84
90
handleDeleteClick = ( ) => {
85
91
this . props . onDelete ( this . props . status , this . context . router . history ) ;
86
92
}
@@ -215,6 +221,7 @@ class ActionBar extends React.PureComponent {
215
221
< div className = 'detailed-status__action-bar' >
216
222
< div className = 'detailed-status__button' > < IconButton title = { intl . formatMessage ( messages . reply ) } icon = { status . get ( 'in_reply_to_id' , null ) === null ? 'reply' : 'reply-all' } onClick = { this . handleReplyClick } /> </ div >
217
223
< div className = 'detailed-status__button' > < IconButton className = { classNames ( { reblogPrivate } ) } disabled = { ! publicStatus && ! reblogPrivate } active = { status . get ( 'reblogged' ) } title = { reblogTitle } icon = 'retweet' onClick = { this . handleReblogClick } /> </ div >
224
+ < div className = 'detailed-status__button' > < IconButton className = 'quote-right-icon' disabled = { ! publicStatus } title = { intl . formatMessage ( messages . quote ) } icon = 'quote-right' onClick = { this . handleQuoteClick } /> </ div >
218
225
< div className = 'detailed-status__button' > < IconButton className = 'star-icon' animate active = { status . get ( 'favourited' ) } title = { intl . formatMessage ( messages . favourite ) } icon = 'star' onClick = { this . handleFavouriteClick } /> </ div >
219
226
{ shareButton }
220
227
< div className = 'detailed-status__button' > < IconButton className = 'bookmark-icon' disabled = { ! signedIn } active = { status . get ( 'bookmarked' ) } title = { intl . formatMessage ( messages . bookmark ) } icon = 'bookmark' onClick = { this . handleBookmarkClick } /> </ div >
0 commit comments