Commit 1f0bb11a7310fa07d063e3443d15585a14aae704
1 parent
74a75aae
Exists in
master
#4393 Correção de defeitos encontrados em homologação
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
cit-tabelas-corp-web/src/main/webapp/assets/js/angular/custom/controller/EstruturaOrganizacionalController.js
... | ... | @@ -394,13 +394,14 @@ citApp.controller('EstruturaOrganizacionalController', ['$scope', '$filter', '$t |
394 | 394 | }); |
395 | 395 | } |
396 | 396 | |
397 | - $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
398 | - | |
399 | 397 | $scope.estruturaOrganizacionalForm.$submitted = false; |
400 | 398 | |
401 | 399 | if($scope.estruturaOrganizacionalECM.estruturaECM){ |
402 | 400 | |
403 | 401 | $scope.salvarEstruturaECM(); |
402 | + }else{ | |
403 | + | |
404 | + $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
404 | 405 | } |
405 | 406 | |
406 | 407 | $scope.setLoading(false); |
... | ... | @@ -650,7 +651,7 @@ citApp.controller('EstruturaOrganizacionalController', ['$scope', '$filter', '$t |
650 | 651 | $scope.$modalInstance.dismiss('cancel'); |
651 | 652 | } |
652 | 653 | |
653 | - $scope.showAlert("success", $translate.instant("CORPORATIVO.MSG.SUCESSO_ESTRUTURA_ECM")); | |
654 | + $scope.showAlert("success", $translate.instant('MSG.MG001')); | |
654 | 655 | }); |
655 | 656 | }; |
656 | 657 | |
... | ... | @@ -691,7 +692,7 @@ citApp.controller('EstruturaOrganizacionalController', ['$scope', '$filter', '$t |
691 | 692 | }; |
692 | 693 | |
693 | 694 | //Buscar grupo através do nome |
694 | - $scope.findAutoCompleteGrupo = function(value){ | |
695 | + $scope.findAutoCompleteGrupo = function(value){ | |
695 | 696 | return GrupoRepository.findAutoComplete('nome', value).then(function(result) { |
696 | 697 | |
697 | 698 | return $filter('idNotEqualObj')(result, $scope.estruturaOrganizacionalECM.gruposUnidade, 'grupo'); | ... | ... |