Skip to content

Commit 7eabb44

Browse files
authored
don't display drop-down when user is Anonymous (#70)
* Fix to not display dropdown when user is "Anonymous"
1 parent 91eb6d3 commit 7eabb44

File tree

1 file changed

+5
-1
lines changed
  • dashboard-web-app/src/main/resources/static/Scripts

1 file changed

+5
-1
lines changed

dashboard-web-app/src/main/resources/static/Scripts/homeCtrl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ angular.module('inventoryHubApp')
4343
$scope.fetchUsername = function () {
4444
productsSvc.getUsername().success(function (results) {
4545
$scope.username = results;
46-
$scope.loggedin = true;
46+
if ($scope.username != 'Anonymous') {
47+
$scope.loggedin = true;
48+
} else {
49+
$scope.loggedin = false;
50+
}
4751
}).error(function (err) {
4852
$scope.error = err;
4953
$scope.loadingMessage = '';

0 commit comments

Comments
 (0)