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-843 Fixed dirty/pristine state logic.
Date Fri, 11 Sep 2015 16:32:36 GMT
IGNITE-843 Fixed dirty/pristine state logic.


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

Branch: refs/heads/ignite-843
Commit: 9f1934e44256770a6daa3197f1e39461228013a0
Parents: 7983586
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Fri Sep 11 23:32:31 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Fri Sep 11 23:32:31 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/caches-controller.js                 | 4 ++++
 .../src/main/js/controllers/clusters-controller.js               | 4 ++++
 .../control-center-web/src/main/js/controllers/common-module.js  | 4 ++++
 .../src/main/js/controllers/metadata-controller.js               | 2 ++
 4 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9f1934e4/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 2ca56a2..55ab8cb 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
@@ -267,6 +267,10 @@ controlCenterModule.controller('cachesController', [
                     else
                         selectFirstItem();
 
+                    $timeout(function() {
+                        $scope.ui.markPristineHard();
+                    });
+
                     $scope.$watch('backupItem', function (val) {
                         if (val) {
                             var metas = cacheMetadatas(val);

http://git-wip-us.apache.org/repos/asf/ignite/blob/9f1934e4/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 6007531..0009069 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
@@ -189,6 +189,10 @@ controlCenterModule.controller('clustersController', ['$scope', '$controller',
'
                 else
                     selectFirstItem();
 
+                $timeout(function() {
+                    $scope.ui.markPristineHard();
+                });
+
                 $scope.$watch('backupItem', function (val) {
                     if (val) {
                         var clusterCaches = _.reduce($scope.caches, function(caches, cache){

http://git-wip-us.apache.org/repos/asf/ignite/blob/9f1934e4/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 296f7e3..f5db503 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
@@ -770,6 +770,10 @@ controlCenterModule.service('$common', [
                                 markPristine(this.inputForm);
                         }
                     },
+                    markPristineHard: function() {
+                        if (isDefined(this.inputForm))
+                            markPristine(this.inputForm);
+                    },
                     markPristine: function (dirtyCnt) {
                         this.dirty = dirtyCnt;
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/9f1934e4/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 d9cadbb..c63c2fe 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
@@ -599,6 +599,8 @@ controlCenterModule.controller('metadataController', [
 
                     $timeout(function () {
                         $scope.$apply();
+                        
+                        $scope.ui.markPristineHard();
                     });
 
                     $scope.$watch('backupItem', function (val) {


Mime
View raw message