php index setting fix

fixes #28
pull/32/head
Szekeres Bálint 2018-11-18 09:56:32 +01:00
parent 2a3b983c83
commit 0579ab5b84
2 changed files with 4 additions and 2 deletions

View File

@ -327,6 +327,9 @@
$scope.data.index = 'index.html'; $scope.data.index = 'index.html';
$scope.data.fallback_html = true; $scope.data.fallback_html = true;
break; break;
case 'backend':
$scope.data.index = 'index.php';
break;
case 'spa': case 'spa':
$scope.data.index = 'index.html'; $scope.data.index = 'index.html';
$scope.data.fallback_html = true; $scope.data.fallback_html = true;
@ -518,7 +521,6 @@
if (!$scope.data.php) { if (!$scope.data.php) {
$scope.defaultData.index = 'index.html'; $scope.defaultData.index = 'index.html';
$scope.data.index = 'index.html';
} else { } else {
$scope.defaultData.index = 'index.php'; $scope.defaultData.index = 'index.php';
} }

View File

@ -437,7 +437,7 @@
</div> </div>
</div> </div>
<div class="tab-pane tab-routing" ng-class="{ 'active': tab === 'routing' }"> <div class="tab-pane tab-routing" ng-class="{ 'active': tab === 'routing' }">
<fieldset class="form-group"> <fieldset class="form-group" ng-if="isPHP()">
<div class="row"> <div class="row">
<legend class="col-sm-3 col-form-label col-form-label-sm"> <legend class="col-sm-3 col-form-label col-form-label-sm">
<code tooltips tooltip-template="Defines the file that will be used as an index.">index</code> <code tooltips tooltip-template="Defines the file that will be used as an index.">index</code>