ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [25/50] ignite git commit: IGNITE-843 Minor fix.
Date Wed, 03 Feb 2016 10:56:50 GMT
IGNITE-843 Minor fix.


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

Branch: refs/heads/ignite-843-rc3
Commit: ad450ba2150e8a8c382f899e053eaab6f1155a58
Parents: 6c7a104
Author: Andrey <anovikov@gridgain.com>
Authored: Tue Feb 2 09:35:07 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Tue Feb 2 09:35:07 2016 +0700

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/ad450ba2/modules/control-center-web/src/main/js/controllers/profile-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/profile-controller.js b/modules/control-center-web/src/main/js/controllers/profile-controller.js
index 3232897..8fc5acd 100644
--- a/modules/control-center-web/src/main/js/controllers/profile-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/profile-controller.js
@@ -44,10 +44,8 @@ consoleModule.controller('profileController',
     };
 
     $scope.saveBtnTipText = function () {
-        if (!$scope.profileForm.$valid)
-            return 'Invalid profile settings';
-
-        return _profileChanged() ? 'Save profile' : 'Nothing to save';
+        return _profileChanged()
+            ? ($scope.profileForm.$valid ? 'Save profile' : 'Invalid profile settings') :
'Nothing to save';
     };
 
     $scope.saveUser = function () {


Mime
View raw message