From d6fd2fcb8f00c2d16ed59a2e6449f35407d95a84 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 1 Jun 2018 13:50:39 -0400 Subject: [PATCH] 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 --- static/js/core-config-setup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/core-config-setup.js b/static/js/core-config-setup.js index f4bace735..e969ca1d5 100644 --- a/static/js/core-config-setup.js +++ b/static/js/core-config-setup.js @@ -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':