You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2016/02/16 16:14:31 UTC

[14/50] ignite git commit: IGNITE-843 Fixed save button for cluster.

IGNITE-843 Fixed save button for cluster.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/77fdb37f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/77fdb37f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/77fdb37f

Branch: refs/heads/ignite-843-rc3
Commit: 77fdb37f8d18010046269f7968c8090a449d13e7
Parents: 53b9b52
Author: Dmitriyff <dm...@gmail.com>
Authored: Mon Feb 15 17:05:07 2016 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Mon Feb 15 17:05:07 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/app/services/cleanup/cleanup.service.js           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/77fdb37f/modules/control-center-web/src/main/js/app/services/cleanup/cleanup.service.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app/services/cleanup/cleanup.service.js b/modules/control-center-web/src/main/js/app/services/cleanup/cleanup.service.js
index e3a1716..c50bfe0 100644
--- a/modules/control-center-web/src/main/js/app/services/cleanup/cleanup.service.js
+++ b/modules/control-center-web/src/main/js/app/services/cleanup/cleanup.service.js
@@ -23,6 +23,7 @@ const isNumber = angular.isNumber;
 const isObject = angular.isObject;
 const isString = angular.isString;
 const isUndefined = angular.isUndefined;
+const isBoolean = (val) => typeof val === 'boolean';
 
 export default ['$cleanup', () => {
     const cleanup = (original, dist) => {
@@ -42,7 +43,7 @@ export default ['$cleanup', () => {
                     }
                 }
             }
-        } else if ((isString(original) && original.length) || isNumber(original))
+        } else if ((isString(original) && original.length) || isNumber(original) || isBoolean(original))
             dist = original;
         else if (isArray(original) && original.length) {
             dist = [];