fix(ui): remove warning in developer portal tab
Remove a warning because also public APIs can be exposed in the developer portal. Show plans section only if there is at least one plan attached to the API version.
Closes:
MODIFY
manager/ui/war/plugins/api-manager/html/api/api-devportal.html
manager/ui/war/plugins/api-manager/html/api/api-devportal.html
</div>
<!--/ Feature in Portal -->
<!-- Attached plans -->
+ <div ng-show="data.apiVersion.plans.length > 0">
<div class="title" apiman-i18n-key="available-plans">Attached Plans</div>
<div>
<span apiman-i18n-key="available-plans-help">
Select which plans appear in the developer portal, and whether developers need approval before they can finalise their subscription.
</span>
</div>
- <div class="apiman-divider-40"
- ng-show="data.planSummaries.length === 0">
- <div class="alert alert-warning">
- <span class="pficon pficon-info"></span>
- <span apiman-i18n-key="api-plans.no-locked-plans-found">No plans are attached to this API. Without plans, this API will not appear in the developer portal.</span>
- </div>
- </div>
-
<div class="container-fluid container-cards-pf">
<div class="row row-cards-pf" style="display: flex;">
<div class="col-xs-6 col-sm-5 col-md-5 container-border" style="display: inline-flex; width: 27em;" ng-repeat="plan in data.apiVersion.plans">
</div>
</div>
</div>
+ </div>
+ </div>
<!-- /row -->
<!-- /Attached plans -->
<hr />
+ <div>
<!-- Image cropper modal and/or image -->
+ <div class="title" apiman-i18n-key="logo">Logo</div>
<div class="row row-cards-pf api-logo-container">
<div class="col-xs-6 col-sm-5 col-md-5 container-border" style="width: 27em;">
<div class="card-pf card-pf-accented card-pf-aggregate-status">

MODIFY
manager/ui/war/plugins/api-manager/html/api/api-plans.html
manager/ui/war/plugins/api-manager/html/api/api-plans.html
<table class="table table-striped table-bordered table-hover table-responsive" data-field="plans">
<thead>
<tr>
- <th>Attach?</th>
+ <th>Attach</th>
<th>Plan</th>
<th>Plan Version</th>
- <th>Require Approval?</th>
+ <th>Require Approval</th>
<th>Discoverability</th>
</tr>
</thead>

fix(ui): remove warning in developer portal tab

Remove a warning because also public APIs can be exposed in the developer portal. Show plans section only if there is at least one plan attached to the API version.

Closes: #2096