ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [2/2] ignite git commit: IGNITE-1674 Empty checkbox for empty table.
Date Thu, 15 Oct 2015 06:43:23 GMT
IGNITE-1674 Empty checkbox for empty table.


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

Branch: refs/heads/ignite-843-rc1
Commit: b226d1bf613cfff10eac9a267609c8598d79cabc
Parents: 032466a
Author: vsisko <vsisko@gridgain.com>
Authored: Thu Oct 15 13:43:06 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Thu Oct 15 13:43:06 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/metadata-controller.js             | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b226d1bf/modules/control-center-web/src/main/js/controllers/metadata-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/metadata-controller.js b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
index 9e061be..a2c7843 100644
--- a/modules/control-center-web/src/main/js/controllers/metadata-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
@@ -204,7 +204,8 @@ consoleModule.controller('metadataController', [
 
             $scope.selectSchema = function () {
                 if ($common.isDefined($scope.loadMeta))
-                    $scope.loadMeta.allSchemasSelected = _.every($scope.loadMeta.displayedSchemas,
'use', true);
+                    $scope.loadMeta.allSchemasSelected = $scope.loadMeta.displayedSchemas.length
> 0
+                        && _.every($scope.loadMeta.displayedSchemas, 'use', true);
             };
 
             $scope.selectAllTables = function () {
@@ -217,7 +218,8 @@ consoleModule.controller('metadataController', [
 
             $scope.selectTable = function () {
                 if ($common.isDefined($scope.loadMeta))
-                    $scope.loadMeta.allTablesSelected = _.every($scope.loadMeta.displayedTables,
'use', true);
+                    $scope.loadMeta.allTablesSelected = $scope.loadMeta.displayedTables.length
> 0
+                        && _.every($scope.loadMeta.displayedTables, 'use', true);
             };
 
             $scope.$watch('loadMeta.displayedSchemas', $scope.selectSchema);


Mime
View raw message