Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-12-03 00:30:42 +03:00
parent b37daed8be
commit 71be1ccd68

View File

@ -70,6 +70,8 @@ module.COLLECTION_TRANSFER_CHANGES = [
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// XXX BUG: saving a list of collections when one collection is not
// loaded breaks...
// XXX undo... // XXX undo...
var CollectionActions = actions.Actions({ var CollectionActions = actions.Actions({
config: { config: {
@ -1689,6 +1691,8 @@ module.CollectionTags = core.ImageGridFeatures.Feature({
// clear and compact tags for all collections... // clear and compact tags for all collections...
rc rc
&& Object.keys(rc || {}) && Object.keys(rc || {})
// XXX skip unloaded collections...
.filter(function(title){ return !!rc[title].data })
.forEach(function(title){ .forEach(function(title){
var tags = c[title].local_tags || {} var tags = c[title].local_tags || {}
var rtags = {} var rtags = {}
@ -1913,6 +1917,8 @@ module.AutoCollections = core.ImageGridFeatures.Feature({
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// XXX show collections in image metadata... (???) // XXX show collections in image metadata... (???)
// XXX might be nice to indicate if a collection is loaded -- has .data...
// XXX rename collection ui...
var UICollectionActions = actions.Actions({ var UICollectionActions = actions.Actions({
config: { config: {
// Global default collections... // Global default collections...
@ -2245,8 +2251,6 @@ module.UICollection = core.ImageGridFeatures.Feature({
// XXX collection id... // XXX collection id...
// XXX Things to try/do: // XXX Things to try/do:
// - save collection on exit/write (?) // - save collection on exit/write (?)
// - lazy load collections (load list, lazy-load data)
// - collection index
// - load directories as collections (auto?)... // - load directories as collections (auto?)...
// - export collections to directories... // - export collections to directories...
// - auto-export collections (on save)... // - auto-export collections (on save)...