Commit d1c5ffd1d81fd29155ed576fa3ac22545beab153

Authored by Carlos Alberto
1 parent 15d5aef9
Exists in master

Correção do cadastro database

cit-esi-web/src/main/webapp/assets/js/angular/custom/controller/DatabaseController.js
@@ -83,7 +83,6 @@ citApp.controller('DatabaseController', ["$scope", "DatabaseRepository", "DataTy @@ -83,7 +83,6 @@ citApp.controller('DatabaseController', ["$scope", "DatabaseRepository", "DataTy
83 83
84 DatabaseRepository.get(database.id).then(function(result) { 84 DatabaseRepository.get(database.id).then(function(result) {
85 $scope.domainChecked = null; 85 $scope.domainChecked = null;
86 - $scope.domain = null;  
87 $scope.database = result.originalElement; 86 $scope.database = result.originalElement;
88 $scope.edit = edit; 87 $scope.edit = edit;
89 88
cit-esi-web/src/main/webapp/html/database/databaseEdit.html
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 <tbody> 91 <tbody>
92 <tr ng-repeat="databaseDomain in database.types" > 92 <tr ng-repeat="databaseDomain in database.types" >
93 <td class="text-center vertical-middle"> 93 <td class="text-center vertical-middle">
94 - <input type="radio" name="domainChecked" ng-value="domain" ng-disabled="!edit" 94 + <input type="radio" name="domainChecked" ng-value="databaseDomain" ng-disabled="!edit"
95 ng-model="domainChecked" ng-click="checkDomain($index, databaseDomain)" /> 95 ng-model="domainChecked" ng-click="checkDomain($index, databaseDomain)" />
96 </td> 96 </td>
97 <td class="vertical-middle"> 97 <td class="vertical-middle">