Various cleanup
This commit is contained in:
parent
c5f551e963
commit
4167af098f
7 changed files with 1 additions and 16 deletions
|
@ -358,8 +358,6 @@ const getRandomSongList = async (args: RandomSongListArgs): Promise<RandomSongLi
|
||||||
throw new Error('Failed to get random songs');
|
throw new Error('Failed to get random songs');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('res', res);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
items: res.body.randomSongs?.song?.map((song) =>
|
items: res.body.randomSongs?.song?.map((song) =>
|
||||||
ssNormalize.song(song, apiClientProps.server, ''),
|
ssNormalize.song(song, apiClientProps.server, ''),
|
||||||
|
|
|
@ -53,8 +53,6 @@ const ActionRequiredRoute = () => {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log(checks);
|
|
||||||
|
|
||||||
const canReturnHome = checks.every((c) => c.valid);
|
const canReturnHome = checks.every((c) => c.valid);
|
||||||
const displayedCheck = checks.find((c) => !c.valid);
|
const displayedCheck = checks.find((c) => !c.valid);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,6 @@ export const NavidromeAlbumFilters = ({
|
||||||
{
|
{
|
||||||
label: 'Is favorited',
|
label: 'Is favorited',
|
||||||
onChange: (e: ChangeEvent<HTMLInputElement>) => {
|
onChange: (e: ChangeEvent<HTMLInputElement>) => {
|
||||||
console.log('e.currentTarget.checked :>> ', e.currentTarget.checked);
|
|
||||||
const updatedFilters = setFilter({
|
const updatedFilters = setFilter({
|
||||||
data: {
|
data: {
|
||||||
_custom: {
|
_custom: {
|
||||||
|
|
|
@ -136,7 +136,6 @@ export const ShuffleAllModal = ({
|
||||||
/>
|
/>
|
||||||
<Group grow>
|
<Group grow>
|
||||||
<NumberInput
|
<NumberInput
|
||||||
disabled={!enableMinYear}
|
|
||||||
label="From year"
|
label="From year"
|
||||||
max={2050}
|
max={2050}
|
||||||
min={1850}
|
min={1850}
|
||||||
|
@ -152,7 +151,6 @@ export const ShuffleAllModal = ({
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<NumberInput
|
<NumberInput
|
||||||
disabled={!enableMaxYear}
|
|
||||||
label="To year"
|
label="To year"
|
||||||
max={2050}
|
max={2050}
|
||||||
min={1850}
|
min={1850}
|
||||||
|
@ -180,7 +178,6 @@ export const ShuffleAllModal = ({
|
||||||
label="Music folder"
|
label="Music folder"
|
||||||
value={musicFolderId}
|
value={musicFolderId}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
console.log('e :>> ', e);
|
|
||||||
setStore({ musicFolderId: e ? String(e) : '' });
|
setStore({ musicFolderId: e ? String(e) : '' });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -138,8 +138,6 @@ export const openUpdatePlaylistModal = async (args: {
|
||||||
queryKey: queryKeys.users.list(server?.id || '', query),
|
queryKey: queryKeys.users.list(server?.id || '', query),
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('playlist', playlist);
|
|
||||||
|
|
||||||
openModal({
|
openModal({
|
||||||
children: (
|
children: (
|
||||||
<UpdatePlaylistForm
|
<UpdatePlaylistForm
|
||||||
|
|
|
@ -66,8 +66,6 @@ const SearchRoute = () => {
|
||||||
lastRow = startIndex + numOfItems;
|
lastRow = startIndex + numOfItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('lastRow', lastRow);
|
|
||||||
|
|
||||||
params.successCallback(items, lastRow);
|
params.successCallback(items, lastRow);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -113,8 +111,6 @@ const SearchRoute = () => {
|
||||||
lastRow = startIndex + numOfItems;
|
lastRow = startIndex + numOfItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('lastRow', lastRow);
|
|
||||||
|
|
||||||
params.successCallback(items, lastRow);
|
params.successCallback(items, lastRow);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -59,7 +59,6 @@ export const ApplicationSettings = () => {
|
||||||
{
|
{
|
||||||
control: (
|
control: (
|
||||||
<NumberInput
|
<NumberInput
|
||||||
disabled={!isElectron()}
|
|
||||||
max={300}
|
max={300}
|
||||||
min={50}
|
min={50}
|
||||||
value={settings.zoomFactor}
|
value={settings.zoomFactor}
|
||||||
|
@ -79,7 +78,7 @@ export const ApplicationSettings = () => {
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
description: 'Sets the application zoom factor in percent',
|
description: 'Sets the application zoom factor in percent',
|
||||||
isHidden: false,
|
isHidden: !isElectron(),
|
||||||
title: 'Zoom factor',
|
title: 'Zoom factor',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Reference in a new issue