mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
integrate filtering into IkonoTv and Cyland whitelabel
This commit is contained in:
parent
a96aa1005f
commit
67e0b34640
@ -52,10 +52,6 @@ let PieceList = React.createClass({
|
||||
key: 'acl_create_editions',
|
||||
label: 'create editions'
|
||||
}]
|
||||
},
|
||||
{
|
||||
label: getLangText('Show works I have'),
|
||||
items: ['acl_loaned']
|
||||
}]
|
||||
};
|
||||
},
|
||||
|
@ -8,6 +8,8 @@ import UserStore from '../../../../../stores/user_store';
|
||||
|
||||
import CylandAccordionListItem from './ascribe_accordion_list/cyland_accordion_list_item';
|
||||
|
||||
import { getLangText } from '../../../../../utils/lang_utils';
|
||||
|
||||
|
||||
let CylandPieceList = React.createClass({
|
||||
getInitialState() {
|
||||
@ -33,6 +35,13 @@ let CylandPieceList = React.createClass({
|
||||
<PieceList
|
||||
redirectTo="register_piece"
|
||||
accordionListItemType={CylandAccordionListItem}
|
||||
filterParams={[{
|
||||
label: getLangText('Show works I have'),
|
||||
items: [{
|
||||
key: 'acl_loaned',
|
||||
label: getLangText('loaned to Cyland')
|
||||
}]
|
||||
}]}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
@ -8,6 +8,9 @@ import UserStore from '../../../../../stores/user_store';
|
||||
|
||||
import IkonotvAccordionListItem from './ascribe_accordion_list/ikonotv_accordion_list_item';
|
||||
|
||||
import { getLangText } from '../../../../../utils/lang_utils';
|
||||
|
||||
|
||||
let IkonotvPieceList = React.createClass({
|
||||
getInitialState() {
|
||||
return UserStore.getState();
|
||||
@ -32,7 +35,13 @@ let IkonotvPieceList = React.createClass({
|
||||
<PieceList
|
||||
redirectTo="register_piece"
|
||||
accordionListItemType={IkonotvAccordionListItem}
|
||||
/>
|
||||
filterParams={[{
|
||||
label: getLangText('Show works I have'),
|
||||
items: [{
|
||||
key: 'acl_loaned',
|
||||
label: getLangText('loaned to IkonoTV')
|
||||
}]
|
||||
}]}/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user