mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented remote side
This commit is contained in:
1 parent
4cb630d0d5
commit
13ba2c721a
14 files changed
+880
-13
No files matched your search
@@ -1026,11 +1026,7 @@ export default function App() {
|
||||
/** Why Normalize cannot change these tracks' files, if so. */
|
||||
const normalizeRefusal = (ids: string[]): string | null =>
|
||||
analyzeRefusal(analyzeOrigin(ids)) ??
|
||||
(editState.data?.remote
|
||||
? 'Normalize is not available on a remote library yet'
|
||||
: capabilities.data?.tracks.normalizable
|
||||
? null
|
||||
: "This library's audio files cannot be normalized")
|
||||
(capabilities.data?.tracks.normalizable ? null : "This library's audio files cannot be normalized")
|
||||
const analyzeOrigin = (ids: string[]): TrackOrigin =>
|
||||
viewingDevice ? 'device' : viewingFolder && ids.some((id) => !folderFiles[id]) ? 'folder' : 'collection'
|
||||
/** Why BPM / Grid / Key cannot be analysed for these tracks at all, if so. */
|
||||
|
||||
Reference in new issue
Block a user