Disable artist filters for subsonic

This commit is contained in:
jeffvli
2022-11-20 02:02:05 -08:00
parent 6f0c523559
commit 0cb2e40f2b
@@ -15,10 +15,12 @@ import {
TextInput, TextInput,
} from '@/renderer/components'; } from '@/renderer/components';
import { useGenreList } from '@/renderer/features/genres'; import { useGenreList } from '@/renderer/features/genres';
import { useAuthStore } from '@/renderer/store';
import { import {
AdvancedFilterGroup, AdvancedFilterGroup,
AdvancedFilterRule, AdvancedFilterRule,
FilterGroupType, FilterGroupType,
ServerType,
} from '@/renderer/types'; } from '@/renderer/types';
const DATE_FILTER_OPTIONS_DATA = [ const DATE_FILTER_OPTIONS_DATA = [
@@ -65,16 +67,22 @@ const FILTER_GROUP_OPTIONS_DATA = [
const FILTER_OPTIONS_DATA = [ const FILTER_OPTIONS_DATA = [
{ {
default: '~', default: '~',
disabled:
useAuthStore.getState().currentServer?.type !== ServerType.JELLYFIN,
label: 'Artist Name', label: 'Artist Name',
value: 'artists.name', value: 'artists.name',
}, },
{ {
default: '=', default: '=',
disabled:
useAuthStore.getState().currentServer?.type !== ServerType.JELLYFIN,
label: 'Artist Rating', label: 'Artist Rating',
value: 'artists.ratings.value', value: 'artists.ratings.value',
}, },
{ {
default: '=', default: '=',
disabled:
useAuthStore.getState().currentServer?.type !== ServerType.JELLYFIN,
label: 'Artist Genre', label: 'Artist Genre',
value: 'artists.genres.id', value: 'artists.genres.id',
}, },