ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [1/2] ignite git commit: # IGNITE-843 Fixed cluster search
Date Wed, 23 Sep 2015 03:45:49 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 7ab85d541 -> e18269083


# IGNITE-843 Fixed cluster search


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

Branch: refs/heads/ignite-843
Commit: 46eefc9e9c89325bc2295b5f4aea29ad6a5de518
Parents: a17b30f
Author: Andrey <anovikov@gridgain.com>
Authored: Wed Sep 23 10:45:40 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Wed Sep 23 10:45:40 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js            | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/46eefc9e/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index d90bb9b..cecfb26 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -1507,6 +1507,16 @@ controlCenterModule.filter('displayValue', function () {
 });
 
 controlCenterModule.filter('clustersSearch', function() {
+    var discoveries = {
+        'Vm': 'static ips',
+        'Multicast': 'multicast',
+        'S3': 'aws s3',
+        'Cloud': 'apache jclouds',
+        'GoogleStorage': 'google cloud storage',
+        'Jdbc': 'jdbc',
+        'SharedFs': 'shared filesystem'
+    };
+
     return function(array, query) {
         if (!angular.isUndefined(array) && !angular.isUndefined(query) &&
!angular.isUndefined(query.$)) {
             var filtredArray = [];
@@ -1514,7 +1524,7 @@ controlCenterModule.filter('clustersSearch', function() {
             var matchString = query.$.toLowerCase();
 
             angular.forEach(array, function (row) {
-                var label = (row.name + ', ' + row.discovery.kind).toLowerCase();
+                var label = (row.name + ', ' + discoveries[row.discovery.kind]).toLowerCase();
 
                 if (label.indexOf(matchString) >= 0)
                     filtredArray.push(row);


Mime
View raw message