mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix while creating email
This commit is contained in:
8
static/backup/backup.js
Executable file → Normal file
8
static/backup/backup.js
Executable file → Normal file
@@ -680,6 +680,7 @@ app.controller('scheduleBackup', function ($scope, $http, $timeout) {
|
||||
$scope.couldNotConnect = true;
|
||||
$scope.scheduleFreq = true;
|
||||
$scope.scheduleBtn = true;
|
||||
$scope.localPath = true;
|
||||
|
||||
populateCurrentRecords();
|
||||
|
||||
@@ -691,6 +692,12 @@ app.controller('scheduleBackup', function ($scope, $http, $timeout) {
|
||||
$scope.scheduleFreq = false;
|
||||
$scope.scheduleBtn = true;
|
||||
|
||||
if($scope.backupDest === 'Home'){
|
||||
$scope.localPath = false;
|
||||
}else{
|
||||
$scope.localPath = true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$scope.scheduleBtnView = function () {
|
||||
@@ -719,6 +726,7 @@ app.controller('scheduleBackup', function ($scope, $http, $timeout) {
|
||||
var data = {
|
||||
backupDest: $scope.backupDest,
|
||||
backupFreq: $scope.backupFreq,
|
||||
localPath: $scope.localPathValue
|
||||
};
|
||||
|
||||
var config = {
|
||||
|
||||
Reference in New Issue
Block a user