mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 13:53:23 +03:00
Added open thread for replies and comments
This commit is contained in:
parent
54f12c8466
commit
8ab1989e5c
@ -182,8 +182,8 @@ class CommentsContainer extends Component {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_handleCommentCopyAction = (index, selectedComment) => {
|
_handleOnPressCommentMenu = (index, selectedComment) => {
|
||||||
const { dispatch, intl } = this.props;
|
const { dispatch, intl, navigation } = this.props;
|
||||||
|
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -197,6 +197,17 @@ class CommentsContainer extends Component {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 1:
|
||||||
|
navigation.navigate({
|
||||||
|
routeName: ROUTES.SCREENS.POST,
|
||||||
|
key: get(selectedComment, 'permlink'),
|
||||||
|
params: {
|
||||||
|
author: get(selectedComment, 'author'),
|
||||||
|
permlink: get(selectedComment, 'permlink'),
|
||||||
|
isHasParentPost: get(selectedComment, 'parent_permlink'),
|
||||||
|
},
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -236,7 +247,7 @@ class CommentsContainer extends Component {
|
|||||||
isLoggedIn={isLoggedIn}
|
isLoggedIn={isLoggedIn}
|
||||||
fetchPost={fetchPost}
|
fetchPost={fetchPost}
|
||||||
handleDeleteComment={this._handleDeleteComment}
|
handleDeleteComment={this._handleDeleteComment}
|
||||||
handleCommentCopyAction={this._handleCommentCopyAction}
|
handleOnPressCommentMenu={this._handleOnPressCommentMenu}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -52,7 +52,7 @@ class CommentsView extends PureComponent {
|
|||||||
isShowSubComments,
|
isShowSubComments,
|
||||||
marginLeft,
|
marginLeft,
|
||||||
handleDeleteComment,
|
handleDeleteComment,
|
||||||
handleCommentCopyAction,
|
handleOnPressCommentMenu,
|
||||||
handleOnVotersPress,
|
handleOnVotersPress,
|
||||||
intl,
|
intl,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
@ -94,13 +94,16 @@ class CommentsView extends PureComponent {
|
|||||||
intl.formatMessage({
|
intl.formatMessage({
|
||||||
id: 'post.copy_link',
|
id: 'post.copy_link',
|
||||||
}),
|
}),
|
||||||
|
intl.formatMessage({
|
||||||
|
id: 'post.open_thread',
|
||||||
|
}),
|
||||||
intl.formatMessage({
|
intl.formatMessage({
|
||||||
id: 'alert.cancel',
|
id: 'alert.cancel',
|
||||||
}),
|
}),
|
||||||
]}
|
]}
|
||||||
title={get(selectedComment, 'summary')}
|
title={get(selectedComment, 'summary')}
|
||||||
cancelButtonIndex={1}
|
cancelButtonIndex={2}
|
||||||
onPress={index => handleCommentCopyAction(index, selectedComment)}
|
onPress={index => handleOnPressCommentMenu(index, selectedComment)}
|
||||||
/>
|
/>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
@ -228,7 +228,8 @@
|
|||||||
"removed_hint": "The post was removed by",
|
"removed_hint": "The post was removed by",
|
||||||
"copy_link": "Copy Link",
|
"copy_link": "Copy Link",
|
||||||
"reblogged": "reblogged by",
|
"reblogged": "reblogged by",
|
||||||
"sponsored": "SPONSORED"
|
"sponsored": "SPONSORED",
|
||||||
|
"open_thread": "Open Thread"
|
||||||
},
|
},
|
||||||
"drafts": {
|
"drafts": {
|
||||||
"title": "Drafts",
|
"title": "Drafts",
|
||||||
|
Loading…
Reference in New Issue
Block a user