Skip to content

Commit

Permalink
Catalog: Hide 'Add' button after installing once, highlight the 'View…
Browse files Browse the repository at this point in the history
…' button (#316)
  • Loading branch information
bodom0015 authored Jun 8, 2020
1 parent 4452b35 commit a5e435c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/catalog/catalog.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ <h4 class="media-heading">{{ spec.label }}</h4>
<div class="col-xs-10">

<!-- View Instance(s) -->
<a id="viewBtn" class="btn btn-xs btn-link" ng-if="installs[spec.key].count > 0" ng-href="/dashboard/home?expand={{ spec.key }}" style="margin:7px;">
<a id="viewBtn" class="btn btn-xs btn-primary" ng-if="installs[spec.key].count > 0" ng-href="/dashboard/home?expand={{ spec.key }}" style="margin:7px;">
View <span class="badge" style="margin-left:4px" ng-if="installs[spec.key].count > 0">{{ installs[spec.key].count }}</span>
</a>

<!-- Install button -->
<button id="addBtn"ng-disabled="installs[spec.key].progress > 0" ng-if="installs[spec.key].progress === 0" style="margin:7px;"
<button id="addBtn" ng-disabled="installs[spec.key].progress > 0" ng-if="installs[spec.key].count === 0 && installs[spec.key].progress === 0" style="margin:7px;"
class="btn btn-xs btn-link" ng-click="install(spec)">
Add
</button>
Expand Down

0 comments on commit a5e435c

Please sign in to comment.