You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2016/02/05 04:39:53 UTC

ignite git commit: IGNITE-843 Mark pristine on remove/reset all.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 a39a8d824 -> 95ae53b92


IGNITE-843 Mark pristine on remove/reset all.


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

Branch: refs/heads/ignite-843-rc2
Commit: 95ae53b92c23d3e1e9b2cb4571a8346096ab22ad
Parents: a39a8d8
Author: vsisko <vs...@gridgain.com>
Authored: Fri Feb 5 10:39:40 2016 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Fri Feb 5 10:39:40 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/caches-controller.js                 | 3 ++-
 .../src/main/js/controllers/clusters-controller.js               | 2 +-
 .../src/main/js/controllers/domains-controller.js                | 4 ++--
 .../src/main/js/controllers/igfs-controller.js                   | 3 ++-
 4 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/95ae53b9/modules/control-center-web/src/main/js/controllers/caches-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/caches-controller.js b/modules/control-center-web/src/main/js/controllers/caches-controller.js
index 00badc2..4ad6f77 100644
--- a/modules/control-center-web/src/main/js/controllers/caches-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/caches-controller.js
@@ -688,7 +688,7 @@ consoleModule.controller('cachesController', [
                             $common.showInfo('All caches have been removed');
 
                             $scope.caches = [];
-
+                            $scope.ui.markPristine();
                             $scope.selectItem(undefined, undefined);
                         })
                         .error(function (errMsg) {
@@ -713,6 +713,7 @@ consoleModule.controller('cachesController', [
             $confirm.confirm('Are you sure you want to undo all changes for current cache?')
                 .then(function () {
                     $scope.backupItem = $scope.selectedItem ? angular.copy($scope.selectedItem) : prepareNewItem();
+                    $scope.ui.markPristine();
                 });
         };
     }]

http://git-wip-us.apache.org/repos/asf/ignite/blob/95ae53b9/modules/control-center-web/src/main/js/controllers/clusters-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/clusters-controller.js b/modules/control-center-web/src/main/js/controllers/clusters-controller.js
index a072930..9e372bf 100644
--- a/modules/control-center-web/src/main/js/controllers/clusters-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/clusters-controller.js
@@ -614,8 +614,8 @@ consoleModule.controller('clustersController', function ($http, $timeout, $scope
                                 $common.showInfo('All clusters have been removed');
 
                                 $scope.clusters = [];
-
                                 $scope.backupItem = undefined;
+                                $scope.ui.inputForm.$setPristine();
                             })
                             .error(function (errMsg) {
                                 $common.showError(errMsg);

http://git-wip-us.apache.org/repos/asf/ignite/blob/95ae53b9/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 7b41614..a3f04f8 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
@@ -1449,9 +1449,8 @@ consoleModule.controller('domainsController', function ($filter, $http, $timeout
                             $common.showInfo('All domain models have been removed');
 
                             $scope.domains = [];
-
+                            $scope.ui.markPristine();
                             $scope.selectItem(undefined, undefined);
-
                             $scope.ui.showValid = true;
                         })
                         .error(function (errMsg) {
@@ -1801,6 +1800,7 @@ consoleModule.controller('domainsController', function ($filter, $http, $timeout
             $confirm.confirm('Are you sure you want to undo all changes for current domain model?')
                 .then(function () {
                     $scope.backupItem = $scope.selectedItem ? angular.copy($scope.selectedItem) : prepareNewItem();
+                    $scope.ui.markPristine();
                 });
         };
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/95ae53b9/modules/control-center-web/src/main/js/controllers/igfs-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/igfs-controller.js b/modules/control-center-web/src/main/js/controllers/igfs-controller.js
index 83da23a..5372886 100644
--- a/modules/control-center-web/src/main/js/controllers/igfs-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/igfs-controller.js
@@ -418,7 +418,7 @@ consoleModule.controller('igfsController', [
                                     $common.showInfo('All IGFS have been removed');
 
                                 $scope.igfss = [];
-
+                                $scope.ui.markPristine();
                                 $scope.selectItem(undefined, undefined);
                             })
                             .error(function (errMsg) {
@@ -443,6 +443,7 @@ consoleModule.controller('igfsController', [
                 $confirm.confirm('Are you sure you want to undo all changes for current IGFS?')
                     .then(function() {
                         $scope.backupItem = $scope.selectedItem ? angular.copy($scope.selectedItem) : prepareNewItem();
+                        $scope.ui.markPristine();
                     });
             };
         }]