bug fix: child domain launcher

This commit is contained in:
usmannasir 2025-06-18 21:57:58 +05:00
parent f17092c124
commit 0fa97f725b
2 changed files with 16 additions and 9 deletions

View File

@ -17883,13 +17883,18 @@ app.controller('launchChild', function ($scope, $http) {
$scope.hideLogs = true;
};
$scope.fileManagerURL = "/filemanager/" + $("#domainNamePage").text();
$scope.previewUrl = "/preview/" + $("#childDomain").text() + "/";
$scope.wordPressInstallURL = "/websites/" + $("#childDomain").text() + "/wordpressInstall";
$scope.joomlaInstallURL = "/websites/" + $("#childDomain").text() + "/joomlaInstall";
$scope.setupGit = "/websites/" + $("#childDomain").text() + "/setupGit";
$scope.installPrestaURL = "/websites/" + $("#childDomain").text() + "/installPrestaShop";
$scope.installMagentoURL = "/websites/" + $("#childDomain").text() + "/installMagento";
// Watch for when the scope variables are initialized from ng-init
$scope.$watch('childDomainName', function(newVal) {
if (newVal) {
$scope.fileManagerURL = "/filemanager/" + $scope.masterDomain;
$scope.previewUrl = "/preview/" + $scope.childDomainName + "/";
$scope.wordPressInstallURL = "/websites/" + $scope.childDomainName + "/wordpressInstall";
$scope.joomlaInstallURL = "/websites/" + $scope.childDomainName + "/joomlaInstall";
$scope.setupGit = "/websites/" + $scope.childDomainName + "/setupGit";
$scope.installPrestaURL = "/websites/" + $scope.childDomainName + "/installPrestaShop";
$scope.installMagentoURL = "/websites/" + $scope.childDomainName + "/installMagento";
}
});
var logType = 0;
$scope.pageNumber = 1;

View File

@ -6,6 +6,8 @@
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!-- Current language: {{ LANGUAGE_CODE }} -->
<div ng-controller="launchChild" ng-init="childDomainName='{{ childDomain }}'; masterDomain='{{ domain }}'">
<style>
/* Ultra-Modern CyberPanel Design System */
@ -534,7 +536,7 @@
}
</style>
<div ng-controller="launchChild" class="container">
<div class="container">
<div id="page-title">
<h2>
@ -1243,6 +1245,6 @@
</div>
</div>
{% endblock %}