Fix blocklist error form state handling

This commit is contained in:
Johannes Zellner
2020-09-12 19:13:10 +02:00
parent 5a1e09936f
commit 63b212bea5

View File

@@ -89,8 +89,8 @@ angular.module('Application').controller('NetworkController', ['$scope', '$locat
if (error) {
$scope.blocklist.error.blocklist = error.message;
$scope.blocklist.error.ip = error.message;
$scope.blocklistForm.$setPristine();
$scope.blocklistForm.$setUntouched();
$scope.blocklistChangeForm.$setPristine();
$scope.blocklistChangeForm.$setUntouched();
return;
}