@@ -12,23 +16,19 @@ const Wordlist = ({suspectWords, bannedWords, onChangeWordlist}) => (
{lang.t('configure.banned-word-header')}
{lang.t('configure.banned-word-text')}
-
{lang.t('configure.suspect-words-title')}
{lang.t('configure.suspect-word-header')}
{lang.t('configure.suspect-word-text')}
-
);
diff --git a/client/coral-admin/src/reducers/settings.js b/client/coral-admin/src/reducers/settings.js
index 640fdfc8d..8fbd67690 100644
--- a/client/coral-admin/src/reducers/settings.js
+++ b/client/coral-admin/src/reducers/settings.js
@@ -24,7 +24,6 @@ export default (state = initialState, action) => {
};
const updateSettings = (state, action) => {
- console.log('updateSettings', state, action);
const s = state.set('fetchingSettings', false).set('fetchSettingsError', null);
const settings = s.get('settings').merge(action.settings);
return s.set('settings', settings);
@@ -42,6 +41,7 @@ const updateWordlist = (state, action) => {
const saveComplete = (state, action) => {
const s = state.set('fetchingSettings', false).set('saveSettingsError', null);
const settings = s.get('settings').merge(action.settings);
+ console.log('saveComplete', settings.toJS());
return s.set('settings', settings);
};
diff --git a/package.json b/package.json
index 4ec24a27a..e700f7113 100644
--- a/package.json
+++ b/package.json
@@ -132,6 +132,7 @@
"react-onclickoutside": "^5.7.1",
"react-redux": "^4.4.5",
"react-router": "^3.0.0",
+ "react-tagsinput": "^3.14.0",
"redux": "^3.6.0",
"redux-mock-store": "^1.2.1",
"redux-thunk": "^2.1.0",
diff --git a/views/admin.ejs b/views/admin.ejs
index 038fb58d7..ec451a51c 100644
--- a/views/admin.ejs
+++ b/views/admin.ejs
@@ -13,6 +13,56 @@
margin: 0;
background: #fff;
}
+ .react-tagsinput {
+ background-color: #fff;
+ border: 1px solid #ccc;
+ overflow: hidden;
+ padding-left: 5px;
+ padding-top: 5px;
+ }
+
+ .react-tagsinput--focused {
+ border-color: rgb(142, 76, 65);
+ }
+
+ .react-tagsinput-tag {
+ background-color: rgb(244, 126, 107);
+ border-radius: 2px;
+ border: 1px solid rgb(142, 76, 65);
+ color: rgb(142, 76, 65);
+ display: inline-block;
+ font-family: sans-serif;
+ font-size: 13px;
+ font-weight: 400;
+ margin-bottom: 5px;
+ margin-right: 5px;
+ padding: 5px;
+ }
+
+ .react-tagsinput-remove {
+ cursor: pointer;
+ font-weight: bold;
+ color: rgb(101, 24, 23);
+ }
+
+ .react-tagsinput-tag a::before {
+ content: " ×";
+ }
+
+ .react-tagsinput-input {
+ background: transparent;
+ border: 0;
+ color: #777;
+ font-family: sans-serif;
+ font-size: 13px;
+ font-weight: 400;
+ margin-bottom: 6px;
+ margin-top: 1px;
+ outline: none;
+ padding: 5px;
+ width: 90px;
+ }
+