add code to fetch existing backups

This commit is contained in:
usmannasir
2025-04-13 14:04:59 +05:00
parent dd79710558
commit 5e42f53d3c
2 changed files with 5 additions and 8 deletions

View File

@@ -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() {

View File

@@ -67,15 +67,15 @@
<div class="form-group">
<div class="col-sm-12">
<button type="button" ng-click="sendVerificationCode()"
class="btn btn-primary" ng-hide="verificationCodeSent">
class="btn btn-primary" ng-hide="verificationCodeSent" style="margin-bottom: 20px; position: relative; z-index: 9999; cursor: pointer; pointer-events: auto;">
{% trans "Send Verification Code" %}
</button>
<button type="button" ng-click="verifyCode()"
class="btn btn-primary" ng-show="verificationCodeSent">
class="btn btn-primary" ng-show="verificationCodeSent" style="margin-bottom: 20px; position: relative; z-index: 9999; cursor: pointer; pointer-events: auto;">
{% trans "Verify Code" %}
</button>
<button type="button" ng-click="cancelVerification()"
class="btn btn-default">
class="btn btn-default" style="margin-bottom: 20px; position: relative; z-index: 9999; cursor: pointer; pointer-events: auto;">
{% trans "Cancel" %}
</button>
</div>