disable archiving for pre-8.2 backups

the sso situation complicates implementing restore for those
This commit is contained in:
Girish Ramakrishnan
2024-12-19 15:27:00 +01:00
parent cd8be9ffb5
commit 812ecf4041
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1757,7 +1757,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.uninstall.latestBackup = null;
Client.getAppBackups($scope.app.id, function (error, backups) {
if (!error && backups.length) $scope.uninstall.latestBackup = backups[0];
// only backups with appConfig (post 8.2) are candidates for archive
if (!error && backups.length) $scope.uninstall.latestBackup = backups[0].appConfig ? backups[0] : null;
});
},