1
0
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:
Brett Sun 2016-01-18 10:53:01 +01:00
parent a2320b892d
commit 78cf40ba64
21 changed files with 42 additions and 41 deletions

View File

@ -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
},

View File

@ -82,11 +82,11 @@ let AccordionListItemTableEditions = React.createClass({
EditionListActions.fetchEditionList({
pieceId,
page: page + 1,
pageSize,
orderBy,
orderAsc,
filterBy
filterBy,
page: page + 1
});
},
render() {

View File

@ -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);
},

View File

@ -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,

View File

@ -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,

View File

@ -109,12 +109,12 @@ class EditionListStore {
EditionsListActions
.fetchEditionList({
filterBy,
maxSeen,
orderAsc,
orderBy,
pieceId,
pageSize,
orderBy,
orderAsc,
filterBy,
maxSeen,
page: 1
})
.catch(console.logGlobal);