mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-17 02:31:09 +01:00
add wp loader
This commit is contained in:
@@ -602,9 +602,7 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
|||||||
if (response.data.ret_data.debugging === 1) {
|
if (response.data.ret_data.debugging === 1) {
|
||||||
$('#debugging').prop('checked', true);
|
$('#debugging').prop('checked', true);
|
||||||
}
|
}
|
||||||
if (response.data.ret_data.searchIndex === 1) {
|
$scope.searchIndexEnabled = response.data.ret_data.searchIndex === 1;
|
||||||
$('#searchIndex').prop('checked', true);
|
|
||||||
}
|
|
||||||
if (response.data.ret_data.maintenanceMode === 1) {
|
if (response.data.ret_data.maintenanceMode === 1) {
|
||||||
$('#maintenanceMode').prop('checked', true);
|
$('#maintenanceMode').prop('checked', true);
|
||||||
}
|
}
|
||||||
@@ -4204,9 +4202,7 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
|||||||
if (response.data.ret_data.debugging === 1) {
|
if (response.data.ret_data.debugging === 1) {
|
||||||
$('#debugging').prop('checked', true);
|
$('#debugging').prop('checked', true);
|
||||||
}
|
}
|
||||||
if (response.data.ret_data.searchIndex === 1) {
|
$scope.searchIndexEnabled = response.data.ret_data.searchIndex === 1;
|
||||||
$('#searchIndex').prop('checked', true);
|
|
||||||
}
|
|
||||||
if (response.data.ret_data.maintenanceMode === 1) {
|
if (response.data.ret_data.maintenanceMode === 1) {
|
||||||
$('#maintenanceMode').prop('checked', true);
|
$('#maintenanceMode').prop('checked', true);
|
||||||
}
|
}
|
||||||
@@ -9073,7 +9069,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
|
|||||||
$scope.operationFailed = false;
|
$scope.operationFailed = false;
|
||||||
$scope.operationSuccessfull = true;
|
$scope.operationSuccessfull = true;
|
||||||
$scope.couldNotConnect = true;
|
$scope.couldNotConnect = true;
|
||||||
$scope.openBaseDirBox = false;
|
$scope.openBaseDirChanged = false;
|
||||||
|
|
||||||
$scope.errorMessage = response.data.error_message;
|
$scope.errorMessage = response.data.error_message;
|
||||||
|
|
||||||
|
|||||||
@@ -243,8 +243,9 @@
|
|||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input ng-click="UpdateWPSettings('searchIndex')"
|
<input ng-click="UpdateWPSettings('searchIndex')"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="custom-control-input ng-pristine ng-untouched ng-valid ng-not-empty"
|
class="custom-control-input"
|
||||||
id="searchIndex">
|
id="searchIndex"
|
||||||
|
ng-model="searchIndexEnabled">
|
||||||
<label class="custom-control-label"
|
<label class="custom-control-label"
|
||||||
for="searchIndex"></label>
|
for="searchIndex"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user