1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00

fix globals lint errors and edition creation - 0 editions - bug

This commit is contained in:
Tim Daubenschütz 2015-07-17 10:30:05 +02:00
parent 8e38e9e8de
commit 8cad3b521b
2 changed files with 6 additions and 6 deletions
.eslintrc
js/components/ascribe_accordion_list

View File

@ -31,6 +31,11 @@
"react/sort-comp": 1, "react/sort-comp": 1,
"react/wrap-multilines": 1 "react/wrap-multilines": 1
}, },
"globals": {
"Raven": true,
"Intercom": true,
"fetch": true
}
"plugins": [ "plugins": [
"react" "react"
], ],

View File

@ -95,12 +95,7 @@ let AccordionListItem = React.createClass({
}, },
onPollingSuccess(pieceId, numEditions) { onPollingSuccess(pieceId, numEditions) {
PieceListActions.updatePropertyForPiece({ PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
pieceId,
key: 'num_editions',
value: numEditions
});
EditionListActions.toggleEditionList(pieceId); EditionListActions.toggleEditionList(pieceId);
let notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000); let notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);