@@ -184,6 +184,18 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
$scope.appRestore.selectedBackup = backup;
|
||||
},
|
||||
|
||||
createBackup: function () {
|
||||
Client.backupApp($scope.appRestore.app.id, function (error) {
|
||||
if (error) {
|
||||
Client.error(error);
|
||||
} else {
|
||||
$('#appRestoreModal').modal('hide');
|
||||
}
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
});
|
||||
},
|
||||
|
||||
show: function (app) {
|
||||
$scope.reset();
|
||||
|
||||
@@ -205,7 +217,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
return false; // prevent propagation and default
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
restore: function () {
|
||||
$scope.appRestore.busy = true;
|
||||
$scope.appRestore.error.password = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user