diff --git a/src/main/ui/static/payment/partner/partner_compliance.js b/src/main/ui/static/payment/partner/partner_compliance.js index b67db4565..f6e77530e 100644 --- a/src/main/ui/static/payment/partner/partner_compliance.js +++ b/src/main/ui/static/payment/partner/partner_compliance.js @@ -24,10 +24,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_moniker); }] } - }).state('compliance_for_audit_detail', { - url: '/partner/complianceForAudit', - templateUrl: '/static/payment/partner/templates/compliance_auth.html', - controller: 'partnerComplianceAuditCtrl' }).state('partner_compliance_auth.partner_kyc_files_auth', { url: '/partners/KycFiles', templateUrl: 'static/payment/kyc/templates/compliance_audit_kyc.html', @@ -132,7 +128,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS app.controller('partnerKycFilesDetail', ['$rootScope', '$scope', '$http', '$state', '$uibModal', 'commonDialog', 'file', function ($rootScope, $scope, $http, $state, $uibModal, commonDialog, file) { $scope.file = file.data || {}; - debugger; $scope.partner = $scope.file.client; $scope.passPartnerComplianceFiles = function () { @@ -175,15 +170,5 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS }) } }]); - - - app.controller('partnerComplianceAuditCtrl', ['$rootScope','$state','$stateParams', function ($rootScope,$state,$stateParams) { - if ($state.is('compliance_for_audit_detail')){ - $state.go('partner_detail'); - } - }]); - - - return app; });