Skip to content

Commit

Permalink
don't display drop-down when user is Anonymous (#70)
Browse files Browse the repository at this point in the history
* Fix to not display dropdown when user is "Anonymous"
  • Loading branch information
milismsft authored Oct 5, 2019
1 parent 91eb6d3 commit 7eabb44
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ angular.module('inventoryHubApp')
$scope.fetchUsername = function () {
productsSvc.getUsername().success(function (results) {
$scope.username = results;
$scope.loggedin = true;
if ($scope.username != 'Anonymous') {
$scope.loggedin = true;
} else {
$scope.loggedin = false;
}
}).error(function (err) {
$scope.error = err;
$scope.loadingMessage = '';
Expand Down

0 comments on commit 7eabb44

Please sign in to comment.