mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-06 12:20:45 +01:00
add code to fetch existing backups
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user