Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 965e307e7 -> 02838a0d6
IGNITE-2360 Show all metadata on fix of last without keyfields. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/02838a0d Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/02838a0d Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/02838a0d Branch: refs/heads/ignite-843-rc2 Commit: 02838a0d6508a5dd7201bcb2e3f80de97f1af05a Parents: 965e307 Author: Vasiliy Sisko <[email protected]> Authored: Thu Jan 21 10:10:03 2016 +0700 Committer: Andrey <[email protected]> Committed: Thu Jan 21 10:10:03 2016 +0700 ---------------------------------------------------------------------- .../src/main/js/controllers/domains-controller.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/02838a0d/modules/control-center-web/src/main/js/controllers/domains-controller.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/controllers/domains-controller.js b/modules/control-center-web/src/main/js/controllers/domains-controller.js index bd88bbf..e792f32 100644 --- a/modules/control-center-web/src/main/js/controllers/domains-controller.js +++ b/modules/control-center-web/src/main/js/controllers/domains-controller.js @@ -1328,6 +1328,8 @@ consoleModule.controller('domainsController', function ($filter, $http, $timeout $scope.selectItem(savedMeta); $common.showInfo('Domain model "' + item.valueType + '" saved.'); + + _checkShowValidPresentation(); }) .error(function (errMsg) { $common.showError(errMsg); @@ -1406,11 +1408,7 @@ consoleModule.controller('domainsController', function ($filter, $http, $timeout $scope.selectItem(undefined, undefined); } - if (!$scope.ui.showValid) { - var validFilter = $filter('domainsValidation'); - - $scope.ui.showValid = validFilter($scope.domains, false, true).length === 0; - } + _checkShowValidPresentation(); }) .error(function (errMsg) { $common.showError(errMsg); @@ -1418,6 +1416,14 @@ consoleModule.controller('domainsController', function ($filter, $http, $timeout }); }; + function _checkShowValidPresentation() { + if (!$scope.ui.showValid) { + var validFilter = $filter('domainsValidation'); + + $scope.ui.showValid = validFilter($scope.domains, false, true).length === 0; + } + } + // Remove all domain models from db. $scope.removeAllItems = function () { $table.tableReset();
