mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Small cosmetic changes
This commit is contained in:
parent
a2320b892d
commit
78cf40ba64
@ -19,9 +19,10 @@ import { getLangText } from '../../utils/lang_utils';
|
||||
|
||||
let AccordionListItemEditionWidget = React.createClass({
|
||||
propTypes: {
|
||||
className: React.PropTypes.string,
|
||||
piece: React.PropTypes.object.isRequired,
|
||||
toggleCreateEditionsDialog: React.PropTypes.func.isRequired,
|
||||
|
||||
className: React.PropTypes.string,
|
||||
onPollingSuccess: React.PropTypes.func
|
||||
},
|
||||
|
||||
|
@ -82,11 +82,11 @@ let AccordionListItemTableEditions = React.createClass({
|
||||
|
||||
EditionListActions.fetchEditionList({
|
||||
pieceId,
|
||||
page: page + 1,
|
||||
pageSize,
|
||||
orderBy,
|
||||
orderAsc,
|
||||
filterBy
|
||||
filterBy,
|
||||
page: page + 1
|
||||
});
|
||||
},
|
||||
render() {
|
||||
|
@ -93,7 +93,7 @@ let AccordionListItemWallet = React.createClass({
|
||||
PieceListActions.fetchPieceList({ page, pageSize, search, orderBy, orderAsc, filterBy });
|
||||
EditionListActions.toggleEditionList(pieceId);
|
||||
|
||||
let notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);
|
||||
const notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);
|
||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||
},
|
||||
|
||||
|
@ -10,9 +10,9 @@ let EditionListFetcher = {
|
||||
* Fetches a list of editions from the API.
|
||||
*/
|
||||
fetch({ pieceId, page, pageSize, orderBy, orderAsc, filterBy }) {
|
||||
let ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
||||
const ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
||||
|
||||
let queryParams = mergeOptions(
|
||||
const queryParams = mergeOptions(
|
||||
{
|
||||
page,
|
||||
pageSize,
|
||||
|
@ -11,11 +11,11 @@ let PieceListFetcher = {
|
||||
* Can be called with all supplied queryparams the API.
|
||||
*/
|
||||
fetch({ page, pageSize, search, orderBy, orderAsc, filterBy }) {
|
||||
let ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
||||
const ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
||||
|
||||
// filterBy is an object of acl key-value pairs.
|
||||
// The values are booleans
|
||||
let queryParams = mergeOptions(
|
||||
const queryParams = mergeOptions(
|
||||
{
|
||||
page,
|
||||
pageSize,
|
||||
|
@ -109,12 +109,12 @@ class EditionListStore {
|
||||
|
||||
EditionsListActions
|
||||
.fetchEditionList({
|
||||
filterBy,
|
||||
maxSeen,
|
||||
orderAsc,
|
||||
orderBy,
|
||||
pieceId,
|
||||
pageSize,
|
||||
orderBy,
|
||||
orderAsc,
|
||||
filterBy,
|
||||
maxSeen,
|
||||
page: 1
|
||||
})
|
||||
.catch(console.logGlobal);
|
||||
|
Loading…
Reference in New Issue
Block a user