fix PHP <-> Python <-> Proxy toggle

pull/66/head
Szekeres Bálint 6 years ago
parent ebc50a325a
commit d4c6d6b3f5

@ -386,6 +386,7 @@
$scope.data.wordpress = $scope.defaultData.wordpress;
$scope.data.drupal = $scope.defaultData.drupal;
$scope.data.magento = $scope.defaultData.magento;
$scope.data.python = $scope.defaultData.python;
$scope.data.proxy = $scope.defaultData.proxy;
$scope.data.index = $scope.defaultData.index;
$scope.data.fallback_html = $scope.defaultData.fallback_html;
@ -413,7 +414,6 @@
$scope.data.magento = true;
break;
case 'nodejs':
$scope.data.php = false;
$scope.data.proxy = true;
break;
}
@ -624,6 +624,17 @@
$scope.data.php = false;
}
// toggle proxy <-> (PHP || Python)
if ($scope.data.proxy && !oldValue.proxy) {
$scope.data.php = false;
$scope.data.python = false;
} else if (
($scope.data.php && !oldValue.php) ||
($scope.data.python && !oldValue.python)
) {
$scope.data.proxy = false;
}
// default index file
if (!$scope.data.php) {
$scope.defaultData.index = 'index.html';

Loading…
Cancel
Save