Fix error reporting of restore form

angular does not attach form elements to the $scope when the DOM
elements are created dynamically!
This commit is contained in:
Johannes Zellner
2018-05-29 22:46:03 +02:00
parent c031253bd4
commit 9189532b83
2 changed files with 5 additions and 14 deletions

View File

@@ -290,7 +290,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
if (error && error.statusCode === 403) {
$scope.appRestore.password = '';
$scope.appRestore.error.password = true;
$scope.appRestoreForm.password.$setPristine();
$('#appRestorePasswordInput').focus();
} else if (error) {
Client.error(error);
@@ -380,11 +379,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.portBindingsInfo = {};
$scope.appRestore.portBindingsEnabled = {};
$scope.appRestore.action = 'restore';
if ($scope.appRestoreForm) {
$scope.appRestoreForm.$setPristine();
$scope.appRestoreForm.$setUntouched();
}
};
$scope.readCertificate = function (event) {