Progress
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user