add proper labels to ND tag filters

This commit is contained in:
jeffvli
2025-12-13 00:20:43 -08:00
parent a546a4d57b
commit eb100351a6
3 changed files with 12 additions and 2 deletions
@@ -180,6 +180,14 @@ export const NDSongQueryFields = [
{ label: 'Year', type: 'number', value: 'year' },
];
export const NDSongQueryFieldsLabelMap: Record<string, string> = NDSongQueryFields.reduce(
(acc, field) => {
acc[field.value] = field.label;
return acc;
},
{} as Record<string, string>,
);
export const NDSongQueryPlaylistOperators = [
{
label: i18n.t('filterOperator.inPlaylist', { postProcess: 'titleCase' }),