Fix config setup tool contact field to allow removal of empty non-URL fields

We just need to clear the binding when the value entered is completely empty

Fixes https://jira.coreos.com/browse/QUAY-815
This commit is contained in:
Joseph Schorr 2018-06-01 13:50:39 -04:00
parent 4978edd0a3
commit d6fd2fcb8f

View file

@ -1114,6 +1114,10 @@ angular.module("core-config-setup", ['angularFileUpload'])
var updateBinding = function() {
if ($scope.value == null) { return; }
var value = $scope.value || '';
if (!value) {
$scope.binding = '';
return;
}
switch ($scope.kind) {
case 'mailto':