diff --git a/js/components/ascribe_buttons/acl_information.js b/js/components/ascribe_buttons/acl_information.js index c5dde338..4d336a49 100644 --- a/js/components/ascribe_buttons/acl_information.js +++ b/js/components/ascribe_buttons/acl_information.js @@ -37,13 +37,13 @@ let AclInformation = React.createClass({ } }, - getInfoText(title, info, example){ + getInfoText(title, info, example, key){ const aim = this.props.aim; if(aim) { if(aim === 'form') { return ( -
+
{replaceSubstringAtIndex(info.slice(2), 's ', ' ')} @@ -55,7 +55,7 @@ let AclInformation = React.createClass({ } else if(aim === 'button') { return ( -
+
{title}
@@ -94,13 +94,13 @@ let AclInformation = React.createClass({
verbsToDisplay = verbsToDisplay.concat(intersectLists(verbs, Object.keys(sanitizedAclObject)));
}
- return verbsToDisplay.map((verb) => {
+ return verbsToDisplay.map((verb, i) => {
const title = titles[verb];
const informationSentence = informationSentences[verb];
const exampleSentence = exampleSentences[verb];
if (title && informationSentence && exampleSentence) {
- return this.getInfoText(getLangText(title), getLangText(informationSentence), getLangText(exampleSentence));
+ return this.getInfoText(getLangText(title), getLangText(informationSentence), getLangText(exampleSentence), i);
}
});
},
diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js
index a20e7040..08bf9d43 100644
--- a/js/components/ascribe_detail/edition.js
+++ b/js/components/ascribe_detail/edition.js
@@ -269,6 +269,7 @@ let CoaDetails = React.createClass({
} else if (typeof coa === 'string') {
coaDetailElement = coa;
} else {
+ // TODO: Define Keys
coaDetailElement = [
{getLangText("Just a sec, we're generating your COA")}
, diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js index 75a2d9a9..1485ffc5 100644 --- a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js +++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js @@ -91,10 +91,10 @@ let PieceListToolbarFilterWidget = React.createClass({ label also iterate over its items, to get all filterable options */} {this.props.filterParams.map(({ label, items }, i) => { return ( -
diff --git a/js/components/header_notification.js b/js/components/header_notification.js
index 4b375685..796d1681 100644
--- a/js/components/header_notification.js
+++ b/js/components/header_notification.js
@@ -15,7 +15,7 @@ import { mergeOptions } from '../utils/general_utils';
import { getLangText } from '../utils/lang_utils';
-let HeaderNotifications = React.createClass({
+let HeaderNotification = React.createClass({
getInitialState() {
return mergeOptions(
@@ -37,31 +37,6 @@ let HeaderNotifications = React.createClass({
this.setState(state);
},
- onMenuItemClick() {
- /*
- This is a hack to make the dropdown close after clicking on an item
- The function just need to be defined
-
- from https://github.com/react-bootstrap/react-bootstrap/issues/368:
-
- @jvillasante - Have you tried to use onSelect with the DropdownButton?
- I don't have a working example that is exactly like yours,
- but I just noticed that the Dropdown closes when I've attached an event handler to OnSelect:
-
-