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:
parent
4978edd0a3
commit
d6fd2fcb8f
1 changed files with 4 additions and 0 deletions
|
@ -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':
|
||||
|
|
Reference in a new issue