diff --git a/client/coral-admin/src/actions/community.js b/client/coral-admin/src/actions/community.js
index 06c8ab0f6..7a4112f8b 100644
--- a/client/coral-admin/src/actions/community.js
+++ b/client/coral-admin/src/actions/community.js
@@ -5,7 +5,8 @@ import {
FETCH_COMMENTERS_SUCCESS,
FETCH_COMMENTERS_FAILURE,
SORT_UPDATE,
- COMMENTERS_NEW_PAGE
+ COMMENTERS_NEW_PAGE,
+ SET_ROLE
} from '../constants/community';
import {base, getInit, handleResp} from '../helpers/response';
@@ -40,3 +41,9 @@ export const newPage = () => ({
type: COMMENTERS_NEW_PAGE
});
+export const setRole = (id, role) => dispatch => {
+ return fetch(`${base}/user/${id}/role`, getInit('POST', {role}))
+ .then(() => {
+ return dispatch({type: SET_ROLE, id, role});
+ });
+};
diff --git a/client/coral-admin/src/components/Comment.js b/client/coral-admin/src/components/Comment.js
index e5a753f80..c115bcf61 100644
--- a/client/coral-admin/src/components/Comment.js
+++ b/client/coral-admin/src/components/Comment.js
@@ -3,8 +3,8 @@ import React from 'react';
import {Button, Icon} from 'react-mdl';
import timeago from 'timeago.js';
import styles from './CommentList.css';
-import I18n from 'coral-framework/modules/i18n/i18n';
-import translations from '../translations';
+import I18n from 'coral-framework/i18n/i18n';
+import translations from '../translations.json';
// Render a single comment for the list
export default props => (
diff --git a/client/coral-admin/src/components/Header.js b/client/coral-admin/src/components/Header.js
index 1a89da513..b2bee0a44 100644
--- a/client/coral-admin/src/components/Header.js
+++ b/client/coral-admin/src/components/Header.js
@@ -2,22 +2,26 @@ import React from 'react';
import {Layout, Navigation, Drawer, Header} from 'react-mdl';
import {Link} from 'react-router';
import styles from './Header.css';
+import I18n from 'coral-framework/i18n/i18n';
+import translations from '../translations.json';
// App header. If we add a navbar it should be here
export default (props) => (
| onHeaderClickHandler({field: header.field})}> - {header.title} - | - ))} -|
|---|---|
| - {row.displayName} - {row.profiles.map(({id}) => id)} - | -- {row.created_at} - | -
| onHeaderClickHandler({field: header.field})}> + {header.title} + | + ))} +||
|---|---|---|
| + {row.displayName} + {row.profiles.map(({id}) => id)} + | ++ {row.created_at} + | +
+ |
+
+ {lang.t('configure.include-comment-stream-desc')} +
+Copy and paste code below into your CMS to embed your comment box in your articles
+{lang.t('configure.copy-and-paste')}