diff --git a/Viewer/features/core.js b/Viewer/features/core.js index dcf222b2..ec446125 100755 --- a/Viewer/features/core.js +++ b/Viewer/features/core.js @@ -1934,8 +1934,8 @@ module.Timers = ImageGridFeatures.Feature({ // // XXX need a mechanism to store the journal in sync (localStorage/fs) -// and be able to execute the journal from last save position if -// recovering from close/crash... +// and be able to execute the journal from a save position (which one?) +// if recovering from close/crash... // XXX should this be a separate feature??? // // XXX would be great to add a mechanism define how to reverse actions... @@ -2192,6 +2192,36 @@ module.Journal = ImageGridFeatures.Feature({ }) +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// XXX persistent journal... +// - save journal to localStorage +// - save journal to file (auto-save) +// ...fs??? +// - on load -> load journal after last save +// XXX need to revise journaling actions before shipping this... +// XXX EXPERIMENTAL... +var PersistentJournalActions = actions.Actions({ + // XXX +}) + +var PersistentJournal = +module.PersistentJournal = ImageGridFeatures.Feature({ + title: 'Action persistent Journal', + + tag: 'persistent-journal', + depends: [ + 'journal', + ], + + actions: PersistentJournalActions, + + handlers: [ + // XXX + ], +}) + + //--------------------------------------------------------------------- // Changes... diff --git a/Viewer/features/sharp.js b/Viewer/features/sharp.js index 8484dc7f..e5746ca4 100755 --- a/Viewer/features/sharp.js +++ b/Viewer/features/sharp.js @@ -871,6 +871,7 @@ var SharpActions = actions.Actions({ }) // read the metadata... + // XXX this can err on some images, need to handle this... var exif = metadata.exif && exifReader(metadata.exif) exif