From e05228b6740004da891e30629a5f6200986df76d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 14 Apr 2018 15:17:42 +0300 Subject: [PATCH] more tweaking the chnages browser... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/experimental.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/experimental.js b/ui (gen4)/features/experimental.js index 052e21df..b42489fd 100755 --- a/ui (gen4)/features/experimental.js +++ b/ui (gen4)/features/experimental.js @@ -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('---')