mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Begun implementing OneLibrary editing
This commit is contained in:
1 parent
2784879872
commit
775e94168c
28 files changed
+1392
-152
No files matched your search
+1
-1
@@ -225,7 +225,7 @@ export interface SaveCapabilities {
|
||||
}
|
||||
|
||||
/** Why a library cannot be edited. A fact — lib/platformCopy.ts words it. */
|
||||
export type ReadonlyCause = 'platform_incomplete' | 'cloud_synced' | 'not_in_library'
|
||||
export type ReadonlyCause = 'platform_incomplete' | 'cloud_synced' | 'not_in_library' | 'browsing'
|
||||
|
||||
export interface Capabilities {
|
||||
platform: Platform
|
||||
|
||||
@@ -55,6 +55,8 @@ export function readOnlyNotice(caps: Capabilities): string | null {
|
||||
return `This ${caps.save.app_name} library is synced with ${caps.save.app_name} Cloud, so Konduktor will not write to it — an edit it did not make could break syncing on your other devices.`
|
||||
case 'not_in_library':
|
||||
return 'This file is not in your collection yet — add it to edit its tags, cues or beatgrid.'
|
||||
case 'browsing':
|
||||
return `This ${caps.save.app_name} drive is open for browsing. Open it for editing to change it.`
|
||||
case 'platform_incomplete':
|
||||
default:
|
||||
return `Konduktor can read ${caps.save.app_name} libraries but cannot save changes to them yet.`
|
||||
|
||||
Reference in new issue
Block a user