add code to fetch existing backups

This commit is contained in:
usmannasir
2025-04-13 13:55:10 +05:00
parent 3a33ba1f0a
commit dd79710558
2 changed files with 13 additions and 1 deletions

View File

@@ -2,13 +2,19 @@
* Created by usman on 9/17/17.
*/
app = angular.module('CyberCP');
app.controller('backupPlanNowOneClick', function($scope, $http) {
$scope.cyberpanelLoading = true;
$scope.showVerification = false;
$scope.verificationCodeSent = false;
$scope.showEmailVerification = function() {
console.log('showEmailVerification called');
$scope.showVerification = true;
if(!$scope.$$phase) {
$scope.$apply();
}
};
$scope.cancelVerification = function() {

View File

@@ -26,11 +26,17 @@
src="{% static 'images/loading.gif' %}">
</h3>
<!-- Debug info -->
<div style="display: none;">
<p>Angular loaded: {$ true $}</p>
<p>Show verification: {$ showVerification $}</p>
</div>
<!-- Verify Email Button -->
<div class="form-group">
<div class="col-sm-12">
<button type="button" ng-click="showEmailVerification()"
class="btn btn-primary" style="margin-bottom: 20px;">
class="btn btn-primary" style="margin-bottom: 20px; position: relative; z-index: 9999; cursor: pointer; pointer-events: auto;">
{% trans "Verify Email to Access Your Backup Plans" %}
</button>
</div>