mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
ref https://github.com/usmannasir/cyberpanel/issues/397: add restart on edit php config adv
This commit is contained in:
14
static/managePHP/managePHP.js
Executable file → Normal file
14
static/managePHP/managePHP.js
Executable file → Normal file
@@ -261,6 +261,7 @@ app.controller('installExtensions', function ($scope, $http, $timeout) {
|
||||
app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
||||
|
||||
$scope.loadingPHP = true;
|
||||
$scope.cyberPanelLoading = true;
|
||||
$scope.canNotFetch = true;
|
||||
$scope.phpDetailsBox = true;
|
||||
$scope.couldNotConnect = true;
|
||||
@@ -377,7 +378,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
$scope.saveChanges = function () {
|
||||
|
||||
$scope.loadingPHP = false;
|
||||
@@ -439,7 +439,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
$scope.fetchAdvancePHPDetails = function () {
|
||||
$scope.loadingPHP = false;
|
||||
$scope.savebtnAdvance = true;
|
||||
@@ -501,7 +500,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
$scope.saveChangesAdvance = function () {
|
||||
|
||||
$scope.loadingPHP = false;
|
||||
@@ -555,6 +553,16 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
||||
|
||||
};
|
||||
|
||||
$scope.restartPHP = function () {
|
||||
|
||||
globalScope = $scope;
|
||||
$scope.cyberPanelLoading = false;
|
||||
url = "/managephp/restartPHP";
|
||||
var data = {};
|
||||
GLobalAjaxCall($http, url, data, GlobalRespSuccess, GlobalRespFailed);
|
||||
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user