Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="panel-heading">
- <div style="display: inline-block; margin-right: 10px;">Career Development <a style="margin-left: 10px;" href="" ng-click="showHome();"><span class="glyphicon glyphicon-home"></span></a></div>
- {{isManagerViewingTasks()}}
- <div class="dropdown" style="display: inline-block;" ng-show="isManagerViewingTasks()">
- <button class="btn btn-default btn-sm dropdown-toggle" type="button">
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <li ng-repeat="task in managerTasks" ng-click="selectCurrentManagerTask(task)"><a href="">{{task.Name + "'s " + programLevels[task.ApplicationLevel].levelText + " Application"}}</a></li>
- </ul>
- </div>
- </div>
- $scope.isManagerViewingTasks() {
- if (this.scope.newApplication) {
- console.log("isManagerViewingTasks");
- console.log(this.scope.newApplication.EmpNo);
- console.log(this.rootScope.currentUser.EmployeeID);
- console.log(this.scope.newApplication.EmpNo !== this.rootScope.currentUser.EmployeeID);
- console.log("hasDirectReports");
- console.log(this.scope.hasDirectReports);
- console.log("selectedEmployee is currentUser");
- console.log(this.rootScope.currentUser.EmployeeID === this.rootScope.selectedEmployee.EmployeeID);
- console.log("final result");
- console.log(typeof ((this.scope.newApplication.EmpNo !== this.rootScope.currentUser.EmployeeID) && this.scope.hasDirectReports && (this.rootScope.currentUser.EmployeeID === this.rootScope.selectedEmployee.EmployeeID)));
- console.log(((this.scope.newApplication.EmpNo !== this.rootScope.currentUser.EmployeeID) && this.scope.hasDirectReports && (this.rootScope.currentUser.EmployeeID === this.rootScope.selectedEmployee.EmployeeID)));
- return ((this.scope.newApplication.EmpNo !== this.rootScope.currentUser.EmployeeID) && this.scope.hasDirectReports && (this.rootScope.currentUser.EmployeeID === this.rootScope.selectedEmployee.EmployeeID));
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement