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
@@ -1,7 +1,6 @@
import coralApi from '../../../coral-framework/helpers/response';
import * as actions from '../constants/comments';
// Get comments to fill each of the three lists on the mod queue
export const fetchModerationQueueComments = () => {
return dispatch => {
@@ -56,7 +55,6 @@ export const createComment = (name, body) => {
};
};
/**
* Action disptacher related to comments
*/
@@ -71,6 +71,7 @@ const updateClosedTimeout = (updateSettings, ts, isMeasure) => (event) => {
const CommentSettings = ({fetchingSettings, updateSettings, settingsError, settings, errors}) => {
if (fetchingSettings) {
/* maybe a spinner here at some point */
return <p>Loading settings...</p>;
}
@@ -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));
}