From 09df4e80473726cf4c7dd7ebd61957b3a74dd5b9 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 20 Aug 2017 23:27:28 -0600 Subject: [PATCH] Add more fields to the EditDictionary* and DictionaryData --- .../display/DictionaryDetails/index.jsx | 1 + .../EditDictionaryForm.jsx | 23 +++++ .../EditLinguisticsForm.jsx | 90 ++++++++++++++++++- .../management/EditDictionaryModal/index.jsx | 40 ++++++++- src/managers/DictionaryData.js | 56 +++++++++++- 5 files changed, 203 insertions(+), 7 deletions(-) diff --git a/src/components/display/DictionaryDetails/index.jsx b/src/components/display/DictionaryDetails/index.jsx index 8f47d87..5ac1e28 100644 --- a/src/components/display/DictionaryDetails/index.jsx +++ b/src/components/display/DictionaryDetails/index.jsx @@ -109,6 +109,7 @@ export class DictionaryDetails extends Component { specification={ this.props.specification } description={ this.props.description } partsOfSpeech={ this.props.partsOfSpeech } + alphabeticalOrder={ this.props.alphabeticalOrder } details={ this.props.details } /> diff --git a/src/components/management/EditDictionaryModal/EditDictionaryForm.jsx b/src/components/management/EditDictionaryModal/EditDictionaryForm.jsx index a1cfe77..1ab5ec4 100644 --- a/src/components/management/EditDictionaryModal/EditDictionaryForm.jsx +++ b/src/components/management/EditDictionaryModal/EditDictionaryForm.jsx @@ -6,6 +6,7 @@ export const EditDictionaryForm = ({ name, specification, description, + alphabeticalOrder, }) => { return (
@@ -68,6 +69,28 @@ export const EditDictionaryForm = ({ />
+ +
+ +

+ The custom order for sorting the words in your { specification }. If blank, English alphabetical order will be used.
+ If the "Case Sensitive" setting is set, include both upper and lower case letters, otherwise, use upper or lower case exclusively. +

+
+