Merge pull request #3100 from quay/joseph.schorr/QUAY-815/empty-irc
Fix config setup tool contact field to allow removal of empty non-URL fields
This commit is contained in:
commit
835caecf7c
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