mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-23 02:46:40 +02:00
feat(playlists): add isMissing and isPresent operators to Navidrome smart playlist form (#2149)
This commit is contained in:
@@ -216,6 +216,17 @@ export const NDSongQueryPlaylistOperators = [
|
||||
},
|
||||
];
|
||||
|
||||
const NDPresenceOperators = [
|
||||
{
|
||||
label: i18n.t('filterOperator.isMissing'),
|
||||
value: 'isMissing',
|
||||
},
|
||||
{
|
||||
label: i18n.t('filterOperator.isPresent'),
|
||||
value: 'isPresent',
|
||||
},
|
||||
];
|
||||
|
||||
export const NDSongQueryDateOperators = [
|
||||
{
|
||||
label: i18n.t('filterOperator.is'),
|
||||
@@ -225,6 +236,7 @@ export const NDSongQueryDateOperators = [
|
||||
label: i18n.t('filterOperator.isNot'),
|
||||
value: 'isNot',
|
||||
},
|
||||
...NDPresenceOperators,
|
||||
{
|
||||
label: i18n.t('filterOperator.before'),
|
||||
value: 'before',
|
||||
@@ -268,6 +280,7 @@ export const NDSongQueryStringOperators = [
|
||||
label: i18n.t('filterOperator.isNot'),
|
||||
value: 'isNot',
|
||||
},
|
||||
...NDPresenceOperators,
|
||||
{
|
||||
label: i18n.t('filterOperator.contains'),
|
||||
value: 'contains',
|
||||
@@ -295,6 +308,7 @@ export const NDSongQueryBooleanOperators = [
|
||||
label: i18n.t('filterOperator.isNot'),
|
||||
value: 'isNot',
|
||||
},
|
||||
...NDPresenceOperators,
|
||||
];
|
||||
|
||||
export const NDSongQueryNumberOperators = [
|
||||
@@ -306,6 +320,7 @@ export const NDSongQueryNumberOperators = [
|
||||
label: i18n.t('filterOperator.isNot'),
|
||||
value: 'isNot',
|
||||
},
|
||||
...NDPresenceOperators,
|
||||
{
|
||||
label: i18n.t('filterOperator.contains'),
|
||||
value: 'contains',
|
||||
|
||||
Reference in New Issue
Block a user