1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +02:00

PR Feedback: Fix replacement of underscores in filterParams

This commit is contained in:
Tim Daubenschütz 2015-09-17 11:39:45 +02:00
parent ac09c721ca
commit 32f38428f1
2 changed files with 5 additions and 7 deletions

View File

@ -111,7 +111,7 @@ let PieceListToolbarFilterWidgetFilter = React.createClass({
param = param.key; param = param.key;
} else { } else {
param = param; param = param;
label = param.split('_')[1]; label = param.split('acl_')[1].replace(/_/g, ' ');
} }
return ( return (

View File

@ -46,12 +46,10 @@ let PieceList = React.createClass({
filterParams: [{ filterParams: [{
label: getLangText('Show works I can'), label: getLangText('Show works I can'),
items: [ items: [
'acl_transfer', 'acl_transfer',
'acl_consign', 'acl_consign',
{ 'acl_create_editions'
key: 'acl_create_editions', ]
label: 'create editions'
}]
}] }]
}; };
}, },