diff --git a/app/scripts/directives/editCommand.js b/app/scripts/directives/editCommand.js index a2dba34e44..b30ce945f7 100644 --- a/app/scripts/directives/editCommand.js +++ b/app/scripts/directives/editCommand.js @@ -35,15 +35,16 @@ angular.module('openshiftConsole') }, true); scope.$watch('input.args', function(newValue, oldValue) { - if (newValue === oldValue) { - return; - } if (argsChanged) { argsChanged = false; return; } - inputChanged = true; + if (newValue === oldValue) { + return; + } + + inputChanged = true; scope.args = _.map(scope.input.args, function(arg) { return arg.value; }); diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js index 7ac4849f56..311cb8cb9f 100644 --- a/dist/scripts/scripts.js +++ b/dist/scripts/scripts.js @@ -12513,12 +12513,9 @@ multiline:e(a) }; }), c = !0)); }, !0), b.$watch("input.args", function(a, e) { -if (a !== e) { -if (c) return void (c = !1); -d = !0, b.args = _.map(b.input.args, function(a) { +return c ? void (c = !1) :void (a !== e && (d = !0, b.args = _.map(b.input.args, function(a) { return a.value; -}), b.form.command.$setDirty(); -} +}), b.form.command.$setDirty())); }, !0), b.addArg = function() { b.nextArg && (b.input.args = b.input.args || [], b.input.args.push({ value:b.nextArg,