diff --git a/IncBackups/static/IncBackups/IncBackups.js b/IncBackups/static/IncBackups/IncBackups.js
index ff088d8e7..94f9d5406 100644
--- a/IncBackups/static/IncBackups/IncBackups.js
+++ b/IncBackups/static/IncBackups/IncBackups.js
@@ -1311,6 +1311,7 @@ app.controller('restorev2backupoage', function ($scope, $http, $timeout) {
$http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas);
+
function ListInitialDatas(response) {
$scope.backupLoading = true;
if (response.data.status === 1) {
@@ -1320,15 +1321,33 @@ app.controller('restorev2backupoage', function ($scope, $http, $timeout) {
console.log(response.data.data)
console.log(response.data.data[0][1])
var snaphots = response.data.data[0][1]
- for (var i=0; i<=snaphots.length; i++)
- {
- var tml = '
\n' +
- ' | '+ snaphots[i].id +' | \n' +
- ' | \n' +
- '
'
- $('#listsnapshots').append(tml)
+ for (var i = 0; i < snaphots.length; i++) {
+ var tml = ' \n' +
+ ' | ' + snaphots[i].id + ' | ' +
+ ' | \n' +
+ ' \n' +
+ '
' +
+ ' | \n' +
+ ' \n' +
+ ' |
' +
+ '' +
+ ' ' +
+ ' \n';
+
+ for (var j = 0; j < snaphots[i].paths.length; j++) {
+ tml += '\n' +
+ '| ' + snaphots[i].paths[j] + ' | \n' +
+ ' \n';
+ }
+
+ tml += ' \n' +
+ ' | \n' +
+ '
\n' +
+ '\n';
+
+ $('#listsnapshots').append(tml);
}
// $scope.Snaphot_ID
@@ -1398,4 +1417,21 @@ app.controller('createV2Backups', function ($scope, $http, $timeout){
$scope.setupAccount = function(){
window.open("https://platform.cyberpersons.com/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup');
};
-});
\ No newline at end of file
+});
+
+function listpaths(pathid,button){
+
+ console.log("LIST PAYH FUNCTIOB CALLED WITH ID "+ pathid);
+ var pathlist = document.getElementById(pathid)
+ if (pathlist.style.display === "none") {
+ pathlist.style.display = "revert";
+
+ document.getElementById(button).innerText="-"
+
+ } else {
+ pathlist.style.display = "none";
+
+ document.getElementById(button).innerText="+"
+
+ }
+}
\ No newline at end of file
diff --git a/IncBackups/templates/IncBackups/RestoreV2Backup.html b/IncBackups/templates/IncBackups/RestoreV2Backup.html
index b03a54fb3..9e8ed155c 100644
--- a/IncBackups/templates/IncBackups/RestoreV2Backup.html
+++ b/IncBackups/templates/IncBackups/RestoreV2Backup.html
@@ -7,6 +7,9 @@
{% get_current_language as LANGUAGE_CODE %}
+
@@ -55,9 +58,9 @@
-
- | {% trans "Snapshot ID" %} |
- {% trans "Action" %} > |
+
+ | {% trans "Snapshot ID" %} |
+ {% trans "Action" %} > |