Skip to content

Commit

Permalink
Bug 1575488 - Don't show duplicate key error when key is blank
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed May 7, 2018
1 parent 173ad50 commit 6f87018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/directives/edit-config-map-or-secret.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
Key is required.
</span>
</div>
<div class="has-error" ng-show="keyValueMapForm['key-' + $id].$error.oscUnique && keyValueMapForm['key-' + $id].$touched">
<div class="has-error" ng-show="keyValueMapForm['key-' + $id].$error.oscUnique && keyValueMapForm['key-' + $id].$touched && item.key">
<span class="help-block">
Duplicate key "{{item.key}}". Keys must be unique within the {{type}}.
</span>
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -6722,7 +6722,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"Key is required.\n" +
"</span>\n" +
"</div>\n" +
"<div class=\"has-error\" ng-show=\"keyValueMapForm['key-' + $id].$error.oscUnique && keyValueMapForm['key-' + $id].$touched\">\n" +
"<div class=\"has-error\" ng-show=\"keyValueMapForm['key-' + $id].$error.oscUnique && keyValueMapForm['key-' + $id].$touched && item.key\">\n" +
"<span class=\"help-block\">\n" +
"Duplicate key \"{{item.key}}\". Keys must be unique within the {{type}}.\n" +
"</span>\n" +
Expand Down

0 comments on commit 6f87018

Please sign in to comment.