This commit is contained in:
Riley Davis
2016-12-20 12:56:44 -07:00
parent 96ed008b96
commit 7a1c3e730b
3 changed files with 3 additions and 2 deletions
@@ -52,6 +52,7 @@ class ModerationQueue extends React.Component {
// Hack for dynamic mdl tabs
componentDidMount () {
if (typeof componentHandler !== 'undefined') {
// FIXME: fix this hack
componentHandler.upgradeAllRegistered(); // eslint-disable-line no-undef
}
@@ -59,6 +60,7 @@ class ModerationQueue extends React.Component {
// Dispatch the update status action
onCommentAction (action, comment) {
// If not banning then change the status to approved or flagged as action = status
this.props.dispatch(updateStatus(action, comment));
}