From b6d917a22b6855cb66a1f258419479af12bdeac6 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 24 Jan 2017 16:08:13 -0700 Subject: [PATCH] fixed translation key, enforced moderation setting schema --- client/coral-plugin-commentbox/CommentBox.js | 2 +- graph/typeDefs.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index 3028103a7..f368953a7 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -120,7 +120,7 @@ class CommentBox extends Component { cStyle={!length || (charCount && length > charCount) ? 'lightGrey' : 'darkGrey'} className={`${name}-button`} onClick={this.postComment}> - {lang.t('POST')} + {lang.t('post')} ) } diff --git a/graph/typeDefs.js b/graph/typeDefs.js index c6804408a..0665a6132 100644 --- a/graph/typeDefs.js +++ b/graph/typeDefs.js @@ -97,8 +97,13 @@ type ActionSummary { current_user: Action } +enum MODERATION_MODE { + PRE + POST +} + type Settings { - moderation: String + moderation: MODERATION_MODE! infoBoxEnable: Boolean infoBoxContent: String closeTimeout: Int