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,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() {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user