Files
Jellystat/backend/models/jf_libraries.js
Thegan Govender 324f173e3e added archiving feature to libraries
added archiving flag to libraries. If a library is deleted or excluded the entire library and its contents are archived when the sync process is run

Added archive toggle in libraries to show/hide archived libraries

Still need to add functionality to bulk purge archived data for a library or for selected items in the library.

cleaned up duplicate statement in migration 46

uncommented backwards navigation code when purge completes
2023-11-20 10:59:12 +02:00

28 lines
751 B
JavaScript

////////////////////////// pn delete move to playback
const jf_libraries_columns = [
"Id",
"Name",
"ServerId",
"IsFolder",
"Type",
"CollectionType",
"ImageTagsPrimary",
"archived",
];
const jf_libraries_mapping = (item) => ({
Id: item.Id,
Name: item.Name,
ServerId: item.ServerId,
IsFolder: item.IsFolder,
Type: item.Type,
CollectionType: item.CollectionType? item.CollectionType : 'mixed',
ImageTagsPrimary:
item.ImageTags && item.ImageTags.Primary ? item.ImageTags.Primary : null,
archived: false,
});
module.exports = {
jf_libraries_columns,
jf_libraries_mapping,
};