diff --git a/cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/GerenciarProcessoController.js b/cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/GerenciarProcessoController.js index ed3345b..a4a82dd 100644 --- a/cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/GerenciarProcessoController.js +++ b/cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/GerenciarProcessoController.js @@ -104,7 +104,7 @@ citApp.controller('GerenciarProcessoController', [ '$scope', '$translate', '$tim $scope.isGerenciarCredencialProcesso = true; $timeout( function () { - angular.element( "#credencialProcessoEdit" ).scope().iniciarCredencial( $scope.processo.id, $scope.credencialUsuarioProcesso ); + angular.element( "#credencialProcessoEdit" ).scope().iniciarCredencial( $scope.processo); } ); }; @@ -333,26 +333,21 @@ citApp.controller('GerenciarProcessoController', [ '$scope', '$translate', '$tim } ); }; - // Exibir dialog para remover credencial do usuário - $scope.exibirDialogConfirmacaoRemoverCredencial = function () { - - $scope.$openModalConfirm( { - message : $translate.instant( 'ECM.MSG.CONFIRMA_RENUNCIAR_CREDENCIAL' ), - callback : $scope.removeCredemcial - } ); - + //Exibir dialog para remover credencial do usuário + $scope.exibirDialogConfirmacaoRemoverCredencial = function(){ + + $scope.$openModalConfirm({message: $translate.instant('ECM.MSG.CONFIRMA_RENUNCIAR_CREDENCIAL'), callback: $scope.renunciarCredencial}); + }; - - // Remover a credencial do usuário - $scope.removeCredemcial = function () { - - CredencialProcessoRepository.remove( $scope.credencialUsuarioProcesso ).then( function () { - - $scope.credencialUsuarioProcesso = null; - + + //Remover a credencial do usuário + $scope.renunciarCredencial = function(){ + + CredencialProcessoRepository.renunciar($scope.processo.id).then(function() { + $scope.voltarGerenciamentoTarefa(); - - } ); + + }); }; // Voltar para tela de gerenciamento de tarefa diff --git a/cit-ecm-web/src/main/webapp/html/credencialProcesso/credencialProcesso.html b/cit-ecm-web/src/main/webapp/html/credencialProcesso/credencialProcesso.html deleted file mode 100644 index 437e372..0000000 --- a/cit-ecm-web/src/main/webapp/html/credencialProcesso/credencialProcesso.html +++ /dev/null @@ -1,212 +0,0 @@ - -