mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
Change smart playlist feature check
This commit is contained in:
@@ -12,7 +12,7 @@ import { convertQueryGroupToNDQuery } from '/@/renderer/features/playlists/utils
|
|||||||
import { useCurrentServer } from '/@/renderer/store';
|
import { useCurrentServer } from '/@/renderer/store';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { hasFeature } from '/@/renderer/api/utils';
|
import { hasFeature } from '/@/renderer/api/utils';
|
||||||
import { NavidromeExtensions } from '/@/renderer/api/navidrome/navidrome-types';
|
import { ServerFeature } from '/@/renderer/api/features.types';
|
||||||
|
|
||||||
interface CreatePlaylistFormProps {
|
interface CreatePlaylistFormProps {
|
||||||
onCancel: () => void;
|
onCancel: () => void;
|
||||||
@@ -123,7 +123,7 @@ export const CreatePlaylistForm = ({ onCancel }: CreatePlaylistFormProps) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{server?.type === ServerType.NAVIDROME &&
|
{server?.type === ServerType.NAVIDROME &&
|
||||||
hasFeature(server, NavidromeExtensions.SMART_PLAYLISTS) && (
|
hasFeature(server, ServerFeature.SMART_PLAYLISTS) && (
|
||||||
<Switch
|
<Switch
|
||||||
label="Is smart playlist?"
|
label="Is smart playlist?"
|
||||||
onChange={(e) => setIsSmartPlaylist(e.currentTarget.checked)}
|
onChange={(e) => setIsSmartPlaylist(e.currentTarget.checked)}
|
||||||
|
|||||||
Reference in New Issue
Block a user