mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Change smart playlist feature check
This commit is contained in:
parent
84837a6887
commit
c8b1e2312a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue