From 5e42f53d3cfd9b9d335dc1b905d70a77f1678052 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sun, 13 Apr 2025 14:04:59 +0500 Subject: [PATCH] add code to fetch existing backups --- backup/static/backup/backup.js | 7 ++----- backup/templates/backup/oneClickBackups.html | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/backup/static/backup/backup.js b/backup/static/backup/backup.js index b68352c9f..cc09b354a 100755 --- a/backup/static/backup/backup.js +++ b/backup/static/backup/backup.js @@ -2,8 +2,7 @@ * Created by usman on 9/17/17. */ -app = angular.module('CyberCP'); - +// Using existing CyberCP module app.controller('backupPlanNowOneClick', function($scope, $http) { $scope.cyberpanelLoading = true; $scope.showVerification = false; @@ -12,9 +11,7 @@ app.controller('backupPlanNowOneClick', function($scope, $http) { $scope.showEmailVerification = function() { console.log('showEmailVerification called'); $scope.showVerification = true; - if(!$scope.$$phase) { - $scope.$apply(); - } + $scope.$apply(); }; $scope.cancelVerification = function() { diff --git a/backup/templates/backup/oneClickBackups.html b/backup/templates/backup/oneClickBackups.html index a50a1524b..b662388ba 100755 --- a/backup/templates/backup/oneClickBackups.html +++ b/backup/templates/backup/oneClickBackups.html @@ -67,15 +67,15 @@