From c08b243b6a787f493365755443537078d12390e4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 30 Mar 2016 18:05:56 +0300 Subject: [PATCH] fixed a bug in .changes... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index bb90d635..7a16354a 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -584,6 +584,8 @@ var FileSystemWriterActions = actions.Actions({ // Mark image changed... // .markChanged(, ...) // + // NOTE: when .changes is null (i.e. everything changed) then calling + // this with anything other than 'none' will have no effect. markChanged: ['- System/', function(){ var that = this @@ -606,6 +608,13 @@ var FileSystemWriterActions = actions.Actions({ } else if(args.length == 1 && args[0] == 'none'){ this.changes = false + // everything is marked changed, everything will be saved + // anyway... + // NOTE: to reset this use .markChanged('none') and then + // manually add the desired changes... + } else if(this.changes == null){ + return + } else { var images = (changes.images || [])