diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js index ab9ff36f..0b46f2cb 100644 --- a/app/javascript/gabsocial/components/status.js +++ b/app/javascript/gabsocial/components/status.js @@ -308,6 +308,7 @@ class Status extends ImmutablePureComponent { contextType, isComposeModalOpen, commentSortingType, + onOpenProModal, } = this.props // const { height } = this.state @@ -430,6 +431,7 @@ class Status extends ImmutablePureComponent { isFeatured={isFeatured} isPinnedInGroup={isPinnedInGroup} isComment={isComment && !isChild} + onOpenProModal={onOpenProModal} /> -
+
+
{ isRepost && !isComment && @@ -90,6 +91,19 @@ class StatusPrepend extends ImmutablePureComponent { }
+ { + isPromoted && +
+ +
+ }
) } @@ -111,6 +125,7 @@ StatusPrepend.propTypes = { isFeatured: PropTypes.bool, isPinnedInGroup: PropTypes.bool, isPromoted: PropTypes.bool, + onOpenProModal: PropTypes.func.isRequired, } export default injectIntl(StatusPrepend) \ No newline at end of file diff --git a/app/javascript/gabsocial/containers/status_container.js b/app/javascript/gabsocial/containers/status_container.js index 4be2d221..bfebdb03 100644 --- a/app/javascript/gabsocial/containers/status_container.js +++ b/app/javascript/gabsocial/containers/status_container.js @@ -32,6 +32,7 @@ import { import { MODAL_BOOST, MODAL_CONFIRM, + MODAL_PRO_UPGRADE, POPOVER_COMMENT_SORTING_OPTIONS, POPOVER_STATUS_SHARE, COMMENT_SORTING_TYPE_OLDEST, @@ -333,7 +334,11 @@ const mapDispatchToProps = (dispatch) => ({ callback, position: 'top', })) - } + }, + + onOpenProModal() { + dispatch(openModal(MODAL_PRO_UPGRADE)) + }, });