Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 6c7a104ce -> ad450ba21
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-rc2 Commit: ad450ba2150e8a8c382f899e053eaab6f1155a58 Parents: 6c7a104 Author: Andrey <anovi...@gridgain.com> Authored: Tue Feb 2 09:35:07 2016 +0700 Committer: Andrey <anovi...@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 () {