diff --git a/baseTemplate/static/baseTemplate/custom-js/system-status.js b/baseTemplate/static/baseTemplate/custom-js/system-status.js index 664e2b20d..db947a0e3 100644 --- a/baseTemplate/static/baseTemplate/custom-js/system-status.js +++ b/baseTemplate/static/baseTemplate/custom-js/system-status.js @@ -748,7 +748,8 @@ app.controller('OnboardingCP', function ($scope, $http, $timeout, $window) { $scope.ExecutionStatus = true; $scope.ReportStatus = true; $scope.OnboardineDone = true; - + + var statusTimer = null; function statusFunc() { $scope.cyberpanelLoading = false; @@ -774,18 +775,24 @@ app.controller('OnboardingCP', function ($scope, $http, $timeout, $window) { $scope.functionStatus = response.data.currentStatus; $scope.cyberpanelLoading = true; $scope.OnboardineDone = false; - $timeout.cancel(); + if (statusTimer) { + $timeout.cancel(statusTimer); + statusTimer = null; + } } else { $scope.functionProgress = {"width": response.data.installationProgress + "%"}; $scope.functionStatus = response.data.currentStatus; - timeout(statusFunc, 3000); + statusTimer = $timeout(statusFunc, 3000); } } else { $scope.cyberpanelLoading = true; $scope.functionStatus = response.data.error_message; $scope.functionProgress = {"width": response.data.installationProgress + "%"}; - $timeout.cancel(); + if (statusTimer) { + $timeout.cancel(statusTimer); + statusTimer = null; + } } } diff --git a/baseTemplate/templates/baseTemplate/onboarding.html b/baseTemplate/templates/baseTemplate/onboarding.html index 4a3f5c4a2..b2ac7fd0a 100644 --- a/baseTemplate/templates/baseTemplate/onboarding.html +++ b/baseTemplate/templates/baseTemplate/onboarding.html @@ -1,115 +1,513 @@ {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "Configure Hostname and other default Settings - CyberPanel" %}{% endblock %} + +{% block header_scripts %} + +{% endblock %} + {% block content %} +{% load static %} +{% get_current_language as LANGUAGE_CODE %} - {% load static %} - {% get_current_language as LANGUAGE_CODE %} - - - -
{% trans "Configure Hostname and other default Settings for CyberPanel" %}
+ + + {% trans "Learn More" %} +
-
+ Note: once configurations are completed, click Restart CyberPanel above, after clicking Restart CyberPanel refresh page to fetch new SSL from the browser.
-
- {% trans "Note: Once configurations are completed, click Restart CyberPanel above. After clicking Restart CyberPanel, refresh the page to fetch new SSL from the browser." %}
+
+