Skip to content

Commit

Permalink
Refs #38162 - Fix repo discovery form
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 committed Jan 28, 2025
1 parent 06452b5 commit 5df0556
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ <h4 translate>Product Options</h4>
<select class="form-control" ng-disabled="creating()"
ng-model="createRepoChoices.existingProductId"
ng-options="product.id as product.name for product in products"
ng-required="createRepoChoices.newProduct === 'false'"/>
ng-required="createRepoChoices.newProduct === 'false'">
</select>
</div>

<div bst-form-group ng-show="createRepoChoices.newProduct === 'true'"
Expand Down Expand Up @@ -45,7 +46,8 @@ <h4 translate>Product Options</h4>
<div bst-form-group ng-show="createRepoChoices.newProduct === 'true' && contentCredentials.length !== 0"
label="{{ 'GPG Key' | translate }}">
<select class="form-control" ng-model="createRepoChoices.product.gpg_key_id"
ng-options="content_credential.id as content_credential.name for content_credential in contentCredentials"/>
ng-options="content_credential.id as content_credential.name for content_credential in contentCredentials">
</select>
</div>

<h4 translate>Repository Options</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<form ng-submit="discover()" name="discoveryForm" class="col-sm-5" role="form">
<div bst-form-group label="{{ 'Repository Type' | translate }}">
<select ng-model="discovery.contentType"
ng-options="contentType.id as contentType.name for contentType in contentTypes"/>
ng-options="contentType.id as contentType.name for contentType in contentTypes">
</select>
</div>

<div bst-form-group ng-if="discovery.contentType === 'yum'"
Expand Down

0 comments on commit 5df0556

Please sign in to comment.