parent
09e9162aa6
commit
49883d0e30
@ -1,19 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
|
||||||
|
|
||||||
const options = [
|
|
||||||
{ id: 'all', name: 'All Albums' },
|
|
||||||
{ id: 'new', name: 'New' },
|
|
||||||
{ id: 'none', name: 'None' }
|
|
||||||
];
|
|
||||||
|
|
||||||
function MonitorNewItemsFilterBuilderRowValue(props) {
|
|
||||||
return (
|
|
||||||
<FilterBuilderRowValue
|
|
||||||
tagList={options}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default MonitorNewItemsFilterBuilderRowValue;
|
|
@ -0,0 +1,33 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import FilterBuilderRowValueProps from 'Components/Filter/Builder/FilterBuilderRowValueProps';
|
||||||
|
import translate from 'Utilities/String/translate';
|
||||||
|
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
||||||
|
|
||||||
|
const options = [
|
||||||
|
{
|
||||||
|
id: 'all',
|
||||||
|
get name() {
|
||||||
|
return translate('AllAlbums');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'new',
|
||||||
|
get name() {
|
||||||
|
return translate('New');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'none',
|
||||||
|
get name() {
|
||||||
|
return translate('None');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
function MonitorNewItemsFilterBuilderRowValue(
|
||||||
|
props: FilterBuilderRowValueProps
|
||||||
|
) {
|
||||||
|
return <FilterBuilderRowValue tagList={options} {...props} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default MonitorNewItemsFilterBuilderRowValue;
|
@ -0,0 +1,9 @@
|
|||||||
|
function firstCharToUpper(input) {
|
||||||
|
if (!input) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return [].map.call(input, (char, i) => (i ? char : char.toUpperCase())).join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
export default firstCharToUpper;
|
Loading…
Reference in new issue