ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [43/50] incubator-ignite git commit: # ignite-1146 Summary, Java tab: 'snippet' value has no check mark in dropdown list.
Date Fri, 31 Jul 2015 07:47:25 GMT
# ignite-1146  Summary, Java tab: 'snippet' value has no check mark in dropdown list.


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

Branch: refs/heads/ignite-1155_1
Commit: cddb1d20d19254416f0efbc8d09fdd31ee3f5ab0
Parents: a3c533c
Author: Andrey <anovikov@gridgain.com>
Authored: Fri Jul 31 13:01:20 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Fri Jul 31 13:01:20 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/summary-controller.js      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/cddb1d20/modules/control-center-web/src/main/js/controllers/summary-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/summary-controller.js b/modules/control-center-web/src/main/js/controllers/summary-controller.js
index a152485..4edc484 100644
--- a/modules/control-center-web/src/main/js/controllers/summary-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/summary-controller.js
@@ -20,8 +20,8 @@ controlCenterModule.controller('summaryController', ['$scope', '$http',
'$common
     $scope.getModel = $common.getModel;
 
     $scope.javaClassItems = [
-        {label: 'snippet', value: false},
-        {label: 'factory class', value: true}
+        {label: 'snippet', value: 1},
+        {label: 'factory class', value: 2}
     ];
 
     $scope.evictionPolicies = [
@@ -34,8 +34,8 @@ controlCenterModule.controller('summaryController', ['$scope', '$http',
'$common
 
     $scope.oss = ['debian:8', 'ubuntu:14.10'];
 
-    $scope.configServer = {javaClassServer: false, os: undefined};
-    $scope.backupItem = {javaClassClient: false};
+    $scope.configServer = {javaClassServer: 1, os: undefined};
+    $scope.backupItem = {javaClassClient: 1};
 
     $http.get('/models/summary.json')
         .success(function (data) {
@@ -62,7 +62,8 @@ controlCenterModule.controller('summaryController', ['$scope', '$http',
'$common
     };
 
     $scope.reloadServer = function () {
-        $scope.javaServer = $scope.configServer.javaClassServer ? $scope.configServer.javaClass
: $scope.configServer.javaSnippet;
+        $scope.javaServer = $scope.configServer.javaClassServer === 2 ?
+            $scope.configServer.javaClass : $scope.configServer.javaSnippet;
 
         if ($scope.configServer.docker) {
             var os = $scope.configServer.os ? $scope.configServer.os : $scope.oss[0];
@@ -108,7 +109,7 @@ controlCenterModule.controller('summaryController', ['$scope', '$http',
'$common
 
     $scope.generateClient = function () {
         $http.post('summary/generator', {
-            _id: $scope.selectedItem._id, javaClass: $scope.backupItem.javaClassClient,
+            _id: $scope.selectedItem._id, javaClass: $scope.backupItem.javaClassClient ===
2,
             clientNearConfiguration: $scope.backupItem.nearConfiguration
         })
             .success(function (data) {


Mime
View raw message