You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.2 KiB
70 lines
1.2 KiB
import React from 'react';
|
|
import translate from 'Utilities/String/translate';
|
|
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
|
import FilterBuilderRowValueProps from './FilterBuilderRowValueProps';
|
|
|
|
const EVENT_TYPE_OPTIONS = [
|
|
{
|
|
id: 1,
|
|
get name() {
|
|
return translate('Grabbed');
|
|
},
|
|
},
|
|
{
|
|
id: 3,
|
|
get name() {
|
|
return translate('TrackImported');
|
|
},
|
|
},
|
|
{
|
|
id: 4,
|
|
get name() {
|
|
return translate('DownloadFailed');
|
|
},
|
|
},
|
|
{
|
|
id: 7,
|
|
get name() {
|
|
return translate('ImportFailed');
|
|
},
|
|
},
|
|
{
|
|
id: 8,
|
|
get name() {
|
|
return translate('DownloadImported');
|
|
},
|
|
},
|
|
{
|
|
id: 5,
|
|
get name() {
|
|
return translate('Deleted');
|
|
},
|
|
},
|
|
{
|
|
id: 6,
|
|
get name() {
|
|
return translate('Renamed');
|
|
},
|
|
},
|
|
{
|
|
id: 9,
|
|
get name() {
|
|
return translate('Retagged');
|
|
},
|
|
},
|
|
{
|
|
id: 7,
|
|
get name() {
|
|
return translate('Ignored');
|
|
},
|
|
},
|
|
];
|
|
|
|
function HistoryEventTypeFilterBuilderRowValue(
|
|
props: FilterBuilderRowValueProps
|
|
) {
|
|
return <FilterBuilderRowValue {...props} tagList={EVENT_TYPE_OPTIONS} />;
|
|
}
|
|
|
|
export default HistoryEventTypeFilterBuilderRowValue;
|