From 66f0963496b53f16f83bd7d176bbf6c491ad28d0 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sun, 13 Apr 2025 16:08:06 +0500 Subject: [PATCH] add code to fetch existing backups --- backup/static/backup/backup.js | 9 +-- backup/templates/backup/oneClickBackups.html | 71 ++++++++++++++++++++ 2 files changed, 73 insertions(+), 7 deletions(-) diff --git a/backup/static/backup/backup.js b/backup/static/backup/backup.js index da19d7add..2aebf2bd3 100755 --- a/backup/static/backup/backup.js +++ b/backup/static/backup/backup.js @@ -79,14 +79,9 @@ app.controller('backupPlanNowOneClick', function($scope, $http) { if (subResponse.data.status == 1) { $scope.showVerification = false; $scope.subscriptions = subResponse.data.subscriptions; + $scope.showSubscriptionsTable = true; - if ($scope.subscriptions.length > 0) { - new PNotify({ - title: 'Success', - text: 'Found ' + $scope.subscriptions.length + ' active subscriptions.', - type: 'success' - }); - } else { + if ($scope.subscriptions.length == 0) { new PNotify({ title: 'Info', text: 'No active subscriptions found for this email.', diff --git a/backup/templates/backup/oneClickBackups.html b/backup/templates/backup/oneClickBackups.html index 922bb7e1c..1ec0c61e5 100755 --- a/backup/templates/backup/oneClickBackups.html +++ b/backup/templates/backup/oneClickBackups.html @@ -83,6 +83,77 @@ + + + + +
+
+

Your Active Subscriptions

+
+
+ + + + + + + + + + + + + + + + + + + + + +
Plan NameStatusAmountBilling IntervalNext Billing DateActions
{$ sub.plan_name $} + + {$ sub.status $} + + ${$ sub.amount $}{$ sub.interval $}{$ sub.current_period_end | date:'medium' $} + +
+
+
+
{% if status == 1 %}