mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed context menu closing after actions
This commit is contained in:
parent
1be6d305a0
commit
cc32b55ee9
2 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,11 @@ class AdminContextMenu extends React.Component {
|
||||||
|
|
||||||
hideComment(event) {
|
hideComment(event) {
|
||||||
this.context.onAction('hideComment', this.props.comment);
|
this.context.onAction('hideComment', this.props.comment);
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
close() {
|
||||||
|
this.props.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -13,6 +13,11 @@ class NotAuthorContextMenu extends React.Component {
|
||||||
|
|
||||||
reportComment(event) {
|
reportComment(event) {
|
||||||
// todo
|
// todo
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
close() {
|
||||||
|
this.props.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue