diff --git a/src/components/EditDictionaryForm.jsx b/src/components/EditDictionaryForm.jsx index 8de6a4a..c730089 100644 --- a/src/components/EditDictionaryForm.jsx +++ b/src/components/EditDictionaryForm.jsx @@ -24,6 +24,7 @@ export class EditDictionaryForm extends React.Component { saveOnClose() { this.props.saveChanges({ name: this.nameField.state.value, + listTypeName: this.listTypeNameField.state.value, description: this.descriptionField.state.value, partsOfSpeech: this.partsOfSpeechField.state.value, allowDuplicates: this.allowDuplicatesField.state.value, @@ -54,6 +55,13 @@ export class EditDictionaryForm extends React.Component { value={this.props.settings.partsOfSpeech} ref={(inputComponent) => this.partsOfSpeechField = inputComponent} /> + alert('The word used to describe the list of words represented by this dictionary. By default, it is "Dictionary", but it could be "Lexicon" or some other classification.') + }} + ref={(inputComponent) => this.listTypeNameField = inputComponent} /> + this.allowDuplicatesField = inputComponent} /> diff --git a/src/components/Input.jsx b/src/components/Input.jsx index 245aaac..78fb329 100644 --- a/src/components/Input.jsx +++ b/src/components/Input.jsx @@ -38,11 +38,19 @@ export class Input extends React.Component { showHelperLink() { if (this.props.helperLink) { - return ( - - {this.props.helperLink.label} - - ); + if (this.props.helperLink.url) { + return ( + + {this.props.helperLink.label} + + ); + } else { + return ( +