mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added full save action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
373322454b
commit
5f580f698c
@ -626,7 +626,7 @@ var FileSystemWriterActions = actions.Actions({
|
|||||||
this.changes || {}
|
this.changes || {}
|
||||||
: {}
|
: {}
|
||||||
|
|
||||||
console.log('CHANGED:', args)
|
//console.log('CHANGED:', args)
|
||||||
|
|
||||||
// all...
|
// all...
|
||||||
if(args.length == 1 && args[0] == 'all'){
|
if(args.length == 1 && args[0] == 'all'){
|
||||||
@ -977,6 +977,7 @@ module.FileSystemWriter = core.ImageGridFeatures.Feature({
|
|||||||
// - save if not base path present (browser)
|
// - save if not base path present (browser)
|
||||||
var FileSystemWriterUIActions = actions.Actions({
|
var FileSystemWriterUIActions = actions.Actions({
|
||||||
// XXX this needs feedback...
|
// XXX this needs feedback...
|
||||||
|
// XXX should this return a promise???
|
||||||
saveIndexHere: ['File/Save',
|
saveIndexHere: ['File/Save',
|
||||||
function(){
|
function(){
|
||||||
if(this.location.path){
|
if(this.location.path){
|
||||||
@ -986,8 +987,17 @@ var FileSystemWriterUIActions = actions.Actions({
|
|||||||
this.browseSaveIndex()
|
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 add ability to create dirs...
|
||||||
// XXX this needs feedback...
|
// XXX this needs feedback...
|
||||||
|
// XXX should this return a promise???
|
||||||
browseSaveIndex: ['File/Save index to...',
|
browseSaveIndex: ['File/Save index to...',
|
||||||
makeBrowseProxy('saveIndex', function(){
|
makeBrowseProxy('saveIndex', function(){
|
||||||
this.location.method = 'loadIndex' })],
|
this.location.method = 'loadIndex' })],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user