fixes to backups view

This commit is contained in:
Girish Ramakrishnan
2020-05-15 12:48:54 -07:00
parent c38c440e63
commit c2ed909818
2 changed files with 6 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
message: '',
errorMessage: '',
taskId: '',
taskType: '',
taskType: 'backup',
checkStatus: function () {
Client.getLatestTaskByType($scope.createBackup.taskType, function (error, task) {
@@ -477,6 +477,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
if (error) return console.error(error);
$scope.backups = backups;
$scope.backups = $scope.backups.slice(0, 20); // only show 20 since we don't have pagination
if ($scope.backups.length > 0) {
$scope.lastBackup = backups[0];