mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
more tweaking the chnages browser...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8d1556d123
commit
e05228b674
@ -26,8 +26,12 @@ var browseWalk = require('lib/widget/browse-walk')
|
||||
/*********************************************************************/
|
||||
|
||||
var ExperimentActions = actions.Actions({
|
||||
// NOTE: we do not want to pick and chose changes as that might lead
|
||||
// to inconsistencies...
|
||||
// ...a better way would be to go would be to:
|
||||
// - reset
|
||||
// - undo / redo
|
||||
// XXX depends on ui, ...
|
||||
// XXX should we add ability to pick and chose the changes???
|
||||
// XXX would be nice to have a universal .save() action...
|
||||
browseChanges: ['Experimental/$Changes...',
|
||||
{dialogTitle: 'Unsaved changes'},
|
||||
@ -42,7 +46,14 @@ var ExperimentActions = actions.Actions({
|
||||
} else {
|
||||
keys
|
||||
.forEach(function(key){
|
||||
make(key)
|
||||
var opts = {}
|
||||
if(that.changes[key] instanceof Array){
|
||||
opts.attrs = {
|
||||
count: that.changes[key].length
|
||||
}
|
||||
}
|
||||
|
||||
make(key, opts)
|
||||
})
|
||||
|
||||
make('---')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user