mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
PR Feedback: Fix replacement of underscores in filterParams
This commit is contained in:
parent
ac09c721ca
commit
32f38428f1
@ -111,7 +111,7 @@ let PieceListToolbarFilterWidgetFilter = React.createClass({
|
||||
param = param.key;
|
||||
} else {
|
||||
param = param;
|
||||
label = param.split('_')[1];
|
||||
label = param.split('acl_')[1].replace(/_/g, ' ');
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -48,10 +48,8 @@ let PieceList = React.createClass({
|
||||
items: [
|
||||
'acl_transfer',
|
||||
'acl_consign',
|
||||
{
|
||||
key: 'acl_create_editions',
|
||||
label: 'create editions'
|
||||
}]
|
||||
'acl_create_editions'
|
||||
]
|
||||
}]
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user