mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +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',
|
key: 'acl_create_editions',
|
||||||
label: '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 CylandAccordionListItem from './ascribe_accordion_list/cyland_accordion_list_item';
|
||||||
|
|
||||||
|
import { getLangText } from '../../../../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
let CylandPieceList = React.createClass({
|
let CylandPieceList = React.createClass({
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
@ -33,6 +35,13 @@ let CylandPieceList = React.createClass({
|
|||||||
<PieceList
|
<PieceList
|
||||||
redirectTo="register_piece"
|
redirectTo="register_piece"
|
||||||
accordionListItemType={CylandAccordionListItem}
|
accordionListItemType={CylandAccordionListItem}
|
||||||
|
filterParams={[{
|
||||||
|
label: getLangText('Show works I have'),
|
||||||
|
items: [{
|
||||||
|
key: 'acl_loaned',
|
||||||
|
label: getLangText('loaned to Cyland')
|
||||||
|
}]
|
||||||
|
}]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -8,6 +8,9 @@ import UserStore from '../../../../../stores/user_store';
|
|||||||
|
|
||||||
import IkonotvAccordionListItem from './ascribe_accordion_list/ikonotv_accordion_list_item';
|
import IkonotvAccordionListItem from './ascribe_accordion_list/ikonotv_accordion_list_item';
|
||||||
|
|
||||||
|
import { getLangText } from '../../../../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
let IkonotvPieceList = React.createClass({
|
let IkonotvPieceList = React.createClass({
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
return UserStore.getState();
|
return UserStore.getState();
|
||||||
@ -32,7 +35,13 @@ let IkonotvPieceList = React.createClass({
|
|||||||
<PieceList
|
<PieceList
|
||||||
redirectTo="register_piece"
|
redirectTo="register_piece"
|
||||||
accordionListItemType={IkonotvAccordionListItem}
|
accordionListItemType={IkonotvAccordionListItem}
|
||||||
/>
|
filterParams={[{
|
||||||
|
label: getLangText('Show works I have'),
|
||||||
|
items: [{
|
||||||
|
key: 'acl_loaned',
|
||||||
|
label: getLangText('loaned to IkonoTV')
|
||||||
|
}]
|
||||||
|
}]}/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user