This commit is contained in:
mgabdev
2020-05-14 23:36:10 -04:00
parent a1977ba450
commit 805012ab72
13 changed files with 27 additions and 16 deletions

View File

@@ -21,8 +21,7 @@ class ProPanel extends PureComponent {
render() {
const { intl, isPro } = this.props
// : todo :
// if (isPro) return null
if (isPro) return null
return (
<PanelLayout

View File

@@ -14,6 +14,7 @@ import {
deleteStatus,
editStatus,
} from '../../actions/statuses';
import { quoteCompose } from '../../actions/compose'
import {
fetchGroupRelationships,
createRemovedAccount,
@@ -257,6 +258,10 @@ class StatusOptionsPopover extends ImmutablePureComponent {
this.props.onRepost(this.props.status, e)
}
handleQuoteClick = (e) => {
this.props.onQuote(this.props.status, this.context.router)
}
render() {
const {
status,
@@ -293,7 +298,7 @@ class StatusOptionsPopover extends ImmutablePureComponent {
icon: 'pencil',
hideArrow: true,
title: intl.formatMessage(messages.repostWithComment),
onClick: this.handleRepostClick,
onClick: this.handleQuoteClick,
})
}

View File

@@ -177,7 +177,7 @@ class Status extends ImmutablePureComponent {
if (snapshot !== null && this.props.updateScrollBottom) {
if (this.node && this.node.offsetTop < snapshot.top) {
console.log("updateScrollBottom")
// console.log("updateScrollBottom")
this.props.updateScrollBottom(snapshot.height - snapshot.top)
}
}

View File

@@ -123,7 +123,7 @@ class StatusList extends ImmutablePureComponent {
}
fetchContextsForInitialStatuses = (statusIds) => {
console.log("fetchContextsForInitialStatuses:", statusIds)
// console.log("fetchContextsForInitialStatuses:", statusIds)
for (let i = 0; i < statusIds.length; i++) {
const statusId = statusIds[i];
this.props.onFetchContext(statusId)