Use active field instead of percent

This commit is contained in:
Girish Ramakrishnan
2018-11-29 23:13:58 -08:00
parent fd1a0f3b0a
commit 63e040ea79

View File

@@ -91,10 +91,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
Client.getTaskProgress('backup', function (error, data) {
if (error) return window.setTimeout($scope.createBackup.updateStatus, 250);
// check if we are done
if (data.percent >= 100) {
if (data.message) console.error('Backup message: ' + data.message); // backup error message
if (!data.active) {
$scope.createBackup.busy = false;
$scope.createBackup.message = '';
$scope.createBackup.percent = 100; // indicates that 'result' is valid