Skip to content

Commit

Permalink
Disable button after it is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Mar 1, 2024
1 parent 13068ac commit 2d8764e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ <h3>
{{ facet.label }}
</h3>
<div class="btn-group btn-toggle" ng-if="facet.label == 'Organisms'" style="margin-bottom: 10px;">
<a href="" class="btn btn-xs" ng-class="$ctrl.includeSubspecies ? 'btn-primary active' : 'btn-default'" ng-click="$ctrl.showSubspecies(facet.id)" aria-hidden="true" uib-tooltip="Show subspecies for selected organism">Include subspecies</a>
<a href="" class="btn btn-xs" ng-class="$ctrl.includeSubspecies ? 'btn-default' : 'btn-primary active'" ng-click="$ctrl.hideSubspecies(facet.id)" aria-hidden="true" uib-tooltip="Show selected organism only">Selected only</a>
<a href="" class="btn btn-xs" ng-class="$ctrl.includeSubspecies ? 'btn-primary active disabled' : 'btn-default'" ng-click="$ctrl.showSubspecies(facet.id)" aria-hidden="true" uib-tooltip="Show subspecies for selected organism">Include subspecies</a>
<a href="" class="btn btn-xs" ng-class="$ctrl.includeSubspecies ? 'btn-default' : 'btn-primary active disabled'" ng-click="$ctrl.hideSubspecies(facet.id)" aria-hidden="true" uib-tooltip="Show selected organism only">Selected only</a>
</div>
<ul class="list-unstyled text-search-facet-values text-search-facet-overflow force-scrollbars" style="overflow-x: hidden;">
<li ng-repeat="facetValue in facet.facetValues" ng-if="facet.id == 'expert_db'">
Expand Down

0 comments on commit 2d8764e

Please sign in to comment.