cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-19 03:12:57 +03:00
parent 807f74729e
commit 11b84d736e

View File

@ -767,7 +767,7 @@ var FileSystemWriterActions = actions.Actions({
// NOTE: with no arguments this will save index to .location.path // NOTE: with no arguments this will save index to .location.path
// XXX should this return a promise??? ...a clean promise??? // XXX should this return a promise??? ...a clean promise???
saveIndex: ['- File/Save', saveIndex: ['- File/',
function(path, logger){ function(path, logger){
var that = this var that = this
path = path || this.location.path path = path || this.location.path
@ -797,16 +797,6 @@ var FileSystemWriterActions = actions.Actions({
that.location.method = 'loadIndex' that.location.method = 'loadIndex'
}) })
}], }],
// XXX should this be a UI action???
// ...at this point this depends on .saveIndexHere(..), thus
// it is here...
// XXX should this return a promise???
saveFullIndex: ['File/Save (full)',
function(){
return this
.markChanged('all')
.saveIndexHere()}],
// XXX ways to treat a collection: // XXX ways to treat a collection:
// - crop data // - crop data
@ -1202,7 +1192,7 @@ var FileSystemWriterUIActions = actions.Actions({
// XXX this needs feedback... // XXX this needs feedback...
// XXX should this return a promise??? // XXX should this return a promise???
saveIndexHere: ['- File/', saveIndexHere: ['File/Save',
function(){ function(){
if(this.location.path){ if(this.location.path){
this.saveIndex() this.saveIndex()
@ -1211,18 +1201,20 @@ var FileSystemWriterUIActions = actions.Actions({
this.browseSaveIndex() this.browseSaveIndex()
} }
}], }],
// XXX should this be a UI action???
// XXX add ability to create dirs... // ...at this point this depends on .saveIndexHere(..), thus
// XXX this needs feedback... // it is here...
// XXX should this return a promise??? // XXX should this return a promise???
browseSaveIndex: ['- File/Save index to...', saveFullIndex: ['File/Save (full)',
makeBrowseProxy('saveIndex', function(){ function(){
this.location.method = 'loadIndex' })], return this
.markChanged('all')
.saveIndexHere()}],
// XXX need to be able to make dirs... // XXX need to be able to make dirs...
browseExportIndex: ['File/Export/Export Index to...', browseExportIndex: ['File/Export/Export Index to...',
makeBrowseProxy('exportIndex')], makeBrowseProxy('exportIndex')],
// XXX need to be able to make dirs... // XXX need to be able to make dirs...
// XXX STUB
browseExportDirs: ['File/Export/Export Images to...', browseExportDirs: ['File/Export/Export Images to...',
makeBrowseProxy('exportDirs')], makeBrowseProxy('exportDirs')],