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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user