2018-10-24 19:28:32 +02:00
|
|
|
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() {
|
2017-02-27 00:03:46 +01:00
|
|
|
if ($scope.selection.backupid == 'direct')
|
2017-02-07 21:51:14 +01:00
|
|
|
$location.path('/restoredirect');
|
2017-02-27 00:03:46 +01:00
|
|
|
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);
|
|
|
|
|
};
|
2018-10-24 19:28:32 +02:00
|
|
|
|
|
|
|
|
$scope.formatDuration = AppUtils.formatDuration;
|
2017-02-07 21:51:14 +01:00
|
|
|
});
|