add code to fetch existing backups

This commit is contained in:
usmannasir
2025-04-13 13:10:44 +05:00
parent 3c84aeb9af
commit 21abb32846
2 changed files with 2 additions and 4 deletions

View File

@@ -2051,7 +2051,6 @@ app.controller('backupPlanNowOneClick', function ($scope, $http, $window) {
$scope.localHide = true;
$scope.showVerification = false;
$scope.verificationCodeSent = false;
$scope.emailVerified = false;
$scope.showEmailVerification = function() {
$scope.showVerification = true;
@@ -2116,7 +2115,6 @@ app.controller('backupPlanNowOneClick', function ($scope, $http, $window) {
}, config).then(function(response) {
$scope.cyberpanelLoading = true;
if (response.data.status == 1) {
$scope.emailVerified = true;
$scope.showVerification = false;
// Fetch backup plans after successful verification
$scope.fetchBackupPlans();

View File

@@ -30,14 +30,14 @@
<div class="form-group">
<div class="col-sm-12">
<button type="button" ng-click="showEmailVerification()"
class="btn btn-primary" ng-hide="showVerification">
class="btn btn-primary" style="margin-bottom: 20px;">
{% trans "Verify Email to Access Your Backup Plans" %}
</button>
</div>
</div>
<!-- Email Verification Section -->
<div class="form-group" ng-show="showVerification">
<div class="form-group" ng-show="showVerification" style="margin-bottom: 20px;">
<div class="col-sm-12">
<div class="alert alert-info">
<h4>{% trans "Verify Your Email" %}</h4>