Files
duplicati/Duplicati/Server/webroot/ngax/scripts/controllers/RestoreWizardController.js
T

19 lines
602 B
JavaScript
Raw Normal View History

backupApp.controller('RestoreWizardController', function($scope, $location, BackupList, AppUtils, gettextCatalog) {
2017-02-07 21:51:14 +01:00
$scope.backups = BackupList.watch($scope);
$scope.selection = {
backupid: '-1'
};
$scope.nextPage = function() {
if ($scope.selection.backupid == 'direct')
2017-02-07 21:51:14 +01:00
$location.path('/restoredirect');
else if ($scope.selection.backupid == 'import')
$location.path('/restore-import');
2017-02-07 21:51:14 +01:00
else
$location.path('/restore/' + $scope.selection.backupid);
};
$scope.formatDuration = AppUtils.formatDuration;
2017-02-07 21:51:14 +01:00
});