ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [14/50] ignite git commit: IGNITE-843 Fixed save button for cluster.
Date Tue, 16 Feb 2016 15:14:31 GMT
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 <dmitriyff@gmail.com>
Authored: Mon Feb 15 17:05:07 2016 +0700
Committer: Andrey <anovikov@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 = [];


Mime
View raw message