Show any last backup error

part of cloudron/box#797
This commit is contained in:
Girish Ramakrishnan
2021-09-30 13:50:42 -07:00
parent b27d439834
commit e9b24f7313
2 changed files with 20 additions and 4 deletions

View File

@@ -1082,6 +1082,14 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
if (error) return Client.error(error);
$scope.backups.backups = backups;
Client.getAppEventLog(app.id, 1, 1, function (error, result) {
if (error) return console.error('Failed to get events:', error);
if (result.length !== 0 && result[0].action == 'app.backup.finish') {
$scope.backups.error.message = result[0].data.errorMessage;
}
});
});
},