move tracks, segments and waypoints within same list

This commit is contained in:
vcoppe
2024-06-03 19:34:23 +02:00
parent c9363de0ab
commit 245ba07141
3 changed files with 122 additions and 29 deletions

View File

@@ -359,6 +359,9 @@ export const dbUtils = {
applyToFile: (id: string, callback: (file: WritableDraft<GPXFile>) => GPXFile) => {
applyToFiles([id], callback);
},
applyToFiles: (ids: string[], callback: (file: WritableDraft<GPXFile>) => GPXFile) => {
applyToFiles(ids, callback);
},
applyToSelection: (callback: (file: WritableDraft<AnyGPXTreeElement>) => AnyGPXTreeElement) => {
if (get(selection).size === 0) {
return;