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