Disabling Add button and actions column in Bench project

parent 7047b86e
...@@ -20,7 +20,7 @@ apply plugin: "org.sonarqube" ...@@ -20,7 +20,7 @@ apply plugin: "org.sonarqube"
war { war {
dependsOn test dependsOn test
baseName = 'myTime' baseName = 'myTeam'
version = '' version = ''
} }
......
...@@ -513,6 +513,8 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -513,6 +513,8 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
'projectId': dataToPass.projectId 'projectId': dataToPass.projectId
}; };
$scope.status = "Active"; $scope.status = "Active";
$scope.isSecondTab = ($scope.projectId == 'Nisum0000');
var employeeModel = $scope.employeeModel; var employeeModel = $scope.employeeModel;
var getCellTemplate1 = '<p class="col-md-6 col-md-offset-3"><i class="fa fa-pencil-square-o fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'UpdateTeam\')"></i><p>' var getCellTemplate1 = '<p class="col-md-6 col-md-offset-3"><i class="fa fa-pencil-square-o fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'UpdateTeam\')"></i><p>'
//'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-minus-circle fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'Delete\')"></i></p>'; //'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-minus-circle fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'Delete\')"></i></p>';
...@@ -537,6 +539,9 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -537,6 +539,9 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
] ]
}; };
$scope.isDisabled = true; $scope.isDisabled = true;
if($scope.isSecondTab){
$scope.gridOptions.columnDefs[5].visible = false;
}
$http({ $http({
method: "GET", method: "GET",
url: appConfig.appUri + "/projectTeam/getProjectDetails?projectId=" + $scope.projectId + "&status=" + $scope.status url: appConfig.appUri + "/projectTeam/getProjectDetails?projectId=" + $scope.projectId + "&status=" + $scope.status
......
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