diff options
author | Iftekharul Islam <iislam@us.ibm.com> | 2017-07-27 10:28:07 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-09-20 13:14:23 -0500 |
commit | 8947e7011dcda32d1572e8a3f2f1105bfbc12b15 (patch) | |
tree | e8afc80922989f725c1356b0ab0dbe98edf66332 /app/login | |
parent | 1221c0ca977f3943be65f023a061b7c41cd890d7 (diff) | |
download | phosphor-webui-8947e7011dcda32d1572e8a3f2f1105bfbc12b15.tar.gz phosphor-webui-8947e7011dcda32d1572e8a3f2f1105bfbc12b15.zip |
Added hardware sensors functionality
Change-Id: I99435613bb77fc0ff72f046c2dc047b13962a7a3
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
Diffstat (limited to 'app/login')
-rw-r--r-- | app/login/controllers/login-controller.html | 2 | ||||
-rw-r--r-- | app/login/controllers/login-controller.js | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/app/login/controllers/login-controller.html b/app/login/controllers/login-controller.html index a0da982..a634302 100644 --- a/app/login/controllers/login-controller.html +++ b/app/login/controllers/login-controller.html @@ -33,4 +33,4 @@ </form> </div> </div> -</div> +</div>
\ No newline at end of file diff --git a/app/login/controllers/login-controller.js b/app/login/controllers/login-controller.js index f4ca375..212abcc 100644 --- a/app/login/controllers/login-controller.js +++ b/app/login/controllers/login-controller.js @@ -35,7 +35,6 @@ window.angular && (function (angular) { }; $scope.login = function(username, password){ $scope.error = false; - $scope.server_unreachable = false; if(!username || username == "" || !password || password == ""){ @@ -46,11 +45,9 @@ window.angular && (function (angular) { $scope.$emit('user-logged-in',{}); $window.location.hash = '#/overview/system'; }else{ - if(unreachable){ - $scope.server_unreachable = true; - }else{ - $scope.error = true; - } + if(!unreachable){ + $scope.error = true; + } }; }); } |