File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/support/create_support_ticket/views/authorizeCustomerPortalController.min.js
Back
define(["angular","cjt/util/locale","cjt/services/alertService","cjt/directives/loadingPanel","app/services/oauth2PopupService","app/services/ticketUrlService","app/services/wizardApi"],(function(angular,LOCALE){var app=angular.module("whm.createSupportTicket");return app.controller("authorizeCustomerPortalController",["$scope","$routeParams","alertService","wizardApi","oauth2PopupService","ticketUrlService",function($scope,$routeParams,alertService,wizardApi,oauth2PopupService,ticketUrlService){if(!wizardApi.verifyStep(/authorize-customer-portal\/.*$/)){return}$scope.$watch((function(){return $routeParams.status}),(function(){$scope.status=$routeParams.status;if($scope.status==="error"){if(!alertService.getAlerts().length){alertService.add({message:LOCALE.maketext("The [asis,cPanel Customer Portal] authorization window appears closed, but the server did not receive an authorization response."),type:"danger",replace:true,id:"closed-auth-window"})}}else if($scope.status!=="authorizing"&&$scope.status!=="verifying"){wizardApi.reset()}else if($scope.status==="verifying"){wizardApi.next()}}));$scope.retry=function(){var popup=oauth2PopupService.show($scope,(function onClose(reason){if(reason!=="closed"){return}wizardApi.loadView("/authorize-customer-portal/error",null,{replaceState:true})}),(function onError(apiError){wizardApi.loadView("/authorize-customer-portal/error",null,{replaceState:true})}));popup.focus();wizardApi.loadView("/authorize-customer-portal/authorizing",null,{clearAlerts:true,replaceState:true})};$scope.cancel=function(){wizardApi.loadView("/start",null,{clearAlerts:true,replaceState:true});wizardApi.reset(true)};$scope.getTicketUrl=ticketUrlService.getTicketUrl}])}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings