diff --git a/Viewer/features/core.js b/Viewer/features/core.js index f855ccb5..b2ff3b9f 100755 --- a/Viewer/features/core.js +++ b/Viewer/features/core.js @@ -2880,15 +2880,14 @@ var TaskActions = actions.Actions({ return (this.__tasks = this.__tasks || this.__task_manager__()) }, - // session tasks are stopped when the index is cleared... - // XXX need to get running tasks by action name... + // NOTE: session tasks are stopped when the index is cleared... + // XXX do we need to cache this... + // ...if yes then we'll need to also clear/update the cache + // every time a task is run/stopped... get sessionTasks(){ - //return this.tasks.titled(...this.sessionTaskActions) }, - return this.cache('sessionTasks', function(data){ - return data - || this.tasks - .filter(function(task){ - return task.__session_task__ }) }) }, + return this.tasks + .filter(function(task){ + return task.__session_task__ }) }, // Queue (task)... diff --git a/Viewer/features/sharp.js b/Viewer/features/sharp.js index 8a764882..c88dcceb 100755 --- a/Viewer/features/sharp.js +++ b/Viewer/features/sharp.js @@ -871,6 +871,12 @@ var SharpActions = actions.Actions({ // XXX EXPERIMENTAL... + // XXX might be a good idea to rename this to something like: + // .buildIndex(options) + // and specify whet to build/not build in options... + // XXX should we also cache/load metadata here??? + // i.e. .cacheAllMetadata() + // XXX do we need to think about running this while index is loading??? makePreviewsAndSave: ['- Sharp|File/', function(){ var link = this.link() @@ -908,7 +914,6 @@ module.Sharp = core.ImageGridFeatures.Feature({ 'loadImages', 'loadNewImages'], 'cacheMetadata: "all"'], - //*/ // set orientation if not defined... // NOTE: progress on this is not shown so as to avoid spamming