Commit 2290c78c authored by rammula-nisum-com's avatar rammula-nisum-com Committed by rbonthala-nisum-com

Defects of 113 and 114 (#76)

parent 433a0ed7
...@@ -171,7 +171,7 @@ myApp.controller("domainController", ...@@ -171,7 +171,7 @@ myApp.controller("domainController",
'Ok').cancel('Cancel'); 'Ok').cancel('Cancel');
$mdDialog.show(confirm).then(function() { $mdDialog.show(confirm).then(function() {
deleteDomainRow(row.entity.domainId); deleteDomainRow(row.entity.domainId);
showAlert("Domain Inactived successfully"); showAlert("Domain Inactivated successfully");
}, function() { }, function() {
console.log("Cancelled dialog"); console.log("Cancelled dialog");
}); });
......
...@@ -299,6 +299,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -299,6 +299,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
document.getElementsByClassName("md-tab")[1].style.visibility = "visible" ; document.getElementsByClassName("md-tab")[1].style.visibility = "visible" ;
$scope.isSecondTab = true; $scope.isSecondTab = true;
$scope.selectedTab = 1; $scope.selectedTab = 1;
$scope.searchTerm = "";
} }
}; };
...@@ -308,6 +309,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -308,6 +309,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
if($scope.isSecondTab === true){ if($scope.isSecondTab === true){
$('.md-select-value')[0].childNodes[0].innerHTML = null $('.md-select-value')[0].childNodes[0].innerHTML = null
$('.md-select-value')[1].childNodes[0].innerHTML = null $('.md-select-value')[1].childNodes[0].innerHTML = null
$('.md-select-value')[2].childNodes[0].innerHTML = null
$('.md-datepicker-input')[0].value = null; $('.md-datepicker-input')[0].value = null;
$('.md-datepicker-input')[1].value = null; $('.md-datepicker-input')[1].value = null;
$('.md-datepicker-input')[2].value = null; $('.md-datepicker-input')[2].value = null;
...@@ -696,7 +698,6 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -696,7 +698,6 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
var account = $scope.account; var account = $scope.account;
var managerId=$scope.managerId; var managerId=$scope.managerId;
var managerName=$scope.managerName; var managerName=$scope.managerName;
var employeeModel = $scope.employeeModel; var employeeModel = $scope.employeeModel;
var projectModel = $scope.projectModel; var projectModel = $scope.projectModel;
var domain = $scope.domain.domainName; var domain = $scope.domain.domainName;
......
...@@ -90,7 +90,7 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo ...@@ -90,7 +90,7 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
$('#home').addClass('md-scroll-mask'); $('#home').addClass('md-scroll-mask');
var confirm = $mdDialog.confirm() var confirm = $mdDialog.confirm()
.clickOutsideToClose(true) .clickOutsideToClose(true)
.textContent('Are you sure you want to delete this account?') .textContent('Are you sure you want to inactive this account?')
.ok('Ok') .ok('Ok')
.cancel('Cancel'); .cancel('Cancel');
$mdDialog.show(confirm).then(function() { $mdDialog.show(confirm).then(function() {
...@@ -114,7 +114,7 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo ...@@ -114,7 +114,7 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
function updateGridAfterDelete(){ function updateGridAfterDelete(){
if($scope.result == "Success"){ if($scope.result == "Success"){
$scope.refreshPage(); $scope.refreshPage();
showAlert('Account deleted successfully'); showAlert('Account is inactivated successfully');
}else if($scope.result == "Error"){ }else if($scope.result == "Error"){
showAlert('Something went wrong while deleting the account.') showAlert('Something went wrong while deleting the account.')
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
<div class="col-xs-6 text-right "> <div class="col-xs-6 text-right ">
<p> <p>
<b>Manager Name:</b><p><span ng-repeat="x in managerIds"> {{x.name}}<br></span></p> <b>Manager Name: </b><span ng-repeat="manager in managerIds">{{manager.employeeName}}<span ng-hide="$last">,</span></span>
</p> </p>
</div> </div>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
<div class="col-xs-6 text-center "> <div class="col-xs-6 text-center ">
<p> <p>
<b>Manager Name:</b><p><span ng-repeat="x in managerIds"> {{x.name}}<br></span></p> <b>Manager Name: </b><span ng-repeat="manager in managerIds">{{manager.employeeName}}<span ng-hide="$last">,</span></span>
</p> </p>
</div> </div>
</div> </div>
...@@ -86,12 +86,12 @@ ...@@ -86,12 +86,12 @@
<output>Role : {{employeeModel.role}}</output> <output>Role : {{employeeModel.role}}</output>
<output>Designation : {{employeeModel.designation}}</output> <output>Designation : {{employeeModel.designation}}</output>
<md-select ng-model="employeeRole" <md-select ng-model="employeeRole"
md-selected-text="getSelectedEmpRole()" md-selected-text="getSelectedEmpRole()"
id="empRole"> <md-optgroup id="empRole"> <md-optgroup
label="employee role"> <md-option label="employee role"> <md-option
ng-value="empRole" ng-value="empRole"
ng-repeat="empRole in employeeRoles">{{empRole}}</md-option> ng-repeat="empRole in employeeRoles">{{empRole}}</md-option>
</md-optgroup> </md-select> </md-optgroup> </md-select>
<md-select ng-model="empBillableStatus " md-selected-text="getSelectedBillableStatus() " id="empBillableStatus" name="empBillableStatus"> <md-select ng-model="empBillableStatus " md-selected-text="getSelectedBillableStatus() " id="empBillableStatus" name="empBillableStatus">
<md-optgroup label="billable statuses "> <md-optgroup label="billable statuses ">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment