mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +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({
|
let AccordionListItemEditionWidget = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
className: React.PropTypes.string,
|
|
||||||
piece: React.PropTypes.object.isRequired,
|
piece: React.PropTypes.object.isRequired,
|
||||||
toggleCreateEditionsDialog: React.PropTypes.func.isRequired,
|
toggleCreateEditionsDialog: React.PropTypes.func.isRequired,
|
||||||
|
|
||||||
|
className: React.PropTypes.string,
|
||||||
onPollingSuccess: React.PropTypes.func
|
onPollingSuccess: React.PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -82,11 +82,11 @@ let AccordionListItemTableEditions = React.createClass({
|
|||||||
|
|
||||||
EditionListActions.fetchEditionList({
|
EditionListActions.fetchEditionList({
|
||||||
pieceId,
|
pieceId,
|
||||||
page: page + 1,
|
|
||||||
pageSize,
|
pageSize,
|
||||||
orderBy,
|
orderBy,
|
||||||
orderAsc,
|
orderAsc,
|
||||||
filterBy
|
filterBy,
|
||||||
|
page: page + 1
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
|
@ -93,7 +93,7 @@ let AccordionListItemWallet = React.createClass({
|
|||||||
PieceListActions.fetchPieceList({ page, pageSize, search, orderBy, orderAsc, filterBy });
|
PieceListActions.fetchPieceList({ page, pageSize, search, orderBy, orderAsc, filterBy });
|
||||||
EditionListActions.toggleEditionList(pieceId);
|
EditionListActions.toggleEditionList(pieceId);
|
||||||
|
|
||||||
let notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);
|
const notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@ let EditionListFetcher = {
|
|||||||
* Fetches a list of editions from the API.
|
* Fetches a list of editions from the API.
|
||||||
*/
|
*/
|
||||||
fetch({ pieceId, page, pageSize, orderBy, orderAsc, filterBy }) {
|
fetch({ pieceId, page, pageSize, orderBy, orderAsc, filterBy }) {
|
||||||
let ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
const ordering = generateOrderingQueryParams(orderBy, orderAsc);
|
||||||
|
|
||||||
let queryParams = mergeOptions(
|
const queryParams = mergeOptions(
|
||||||
{
|
{
|
||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
@ -11,11 +11,11 @@ let PieceListFetcher = {
|
|||||||
* Can be called with all supplied queryparams the API.
|
* Can be called with all supplied queryparams the API.
|
||||||
*/
|
*/
|
||||||
fetch({ page, pageSize, search, orderBy, orderAsc, filterBy }) {
|
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.
|
// filterBy is an object of acl key-value pairs.
|
||||||
// The values are booleans
|
// The values are booleans
|
||||||
let queryParams = mergeOptions(
|
const queryParams = mergeOptions(
|
||||||
{
|
{
|
||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
@ -109,12 +109,12 @@ class EditionListStore {
|
|||||||
|
|
||||||
EditionsListActions
|
EditionsListActions
|
||||||
.fetchEditionList({
|
.fetchEditionList({
|
||||||
filterBy,
|
|
||||||
maxSeen,
|
|
||||||
orderAsc,
|
|
||||||
orderBy,
|
|
||||||
pieceId,
|
pieceId,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
orderBy,
|
||||||
|
orderAsc,
|
||||||
|
filterBy,
|
||||||
|
maxSeen,
|
||||||
page: 1
|
page: 1
|
||||||
})
|
})
|
||||||
.catch(console.logGlobal);
|
.catch(console.logGlobal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user