From 5f580f698c089df11a7dc63bfcede7edecd1546d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 7 Apr 2016 16:09:29 +0300 Subject: [PATCH] added full save action... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 0b0592b0..6bc2dbe6 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -626,7 +626,7 @@ var FileSystemWriterActions = actions.Actions({ this.changes || {} : {} - console.log('CHANGED:', args) + //console.log('CHANGED:', args) // all... if(args.length == 1 && args[0] == 'all'){ @@ -977,6 +977,7 @@ module.FileSystemWriter = core.ImageGridFeatures.Feature({ // - save if not base path present (browser) var FileSystemWriterUIActions = actions.Actions({ // XXX this needs feedback... + // XXX should this return a promise??? saveIndexHere: ['File/Save', function(){ if(this.location.path){ @@ -986,8 +987,17 @@ var FileSystemWriterUIActions = actions.Actions({ this.browseSaveIndex() } }], + // XXX should this be a UI action??? + // XXX should this return a promise??? + saveFullIndex: ['File/Save full', + function(){ + return this + .markChanged('all') + .saveIndexHere() + }], // XXX add ability to create dirs... // XXX this needs feedback... + // XXX should this return a promise??? browseSaveIndex: ['File/Save index to...', makeBrowseProxy('saveIndex', function(){ this.location.method = 'loadIndex' })],