Skip to content

Commit

Permalink
Hide Add revision button if review type is not manual
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan committed Dec 15, 2022
1 parent dcab34d commit 55ee7e8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Revisions.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
<partial name="Shared/_ReviewBadge" model=" Model.Review" />
</div>
</div>
<div class="row" asp-resource="@Model.Review" asp-requirement="@AutoReviewModifierRequirement.Instance">
<div class="bottom-right-floating">
<button type="button" class="btn btn-primary btn-circle btn-circle-xl" data-toggle="modal" data-target="#uploadModel"><small>ADD</small></br><i class="fas fa-sm fa-plus"></i></br><small>REVISION</small></button>
</div>
</div>
@if (Model.Review.FilterType == ReviewType.Manual)
{
<div class="row" asp-resource="@Model.Review" asp-requirement="@AutoReviewModifierRequirement.Instance">
<div class="bottom-right-floating">
<button type="button" class="btn btn-primary btn-circle btn-circle-xl" data-toggle="modal" data-target="#uploadModel"><small>ADD</small><br><i class="fas fa-sm fa-plus"></i><br><small>REVISION</small></button>
</div>
</div>
}


<div class="modal fade" id="uploadModel" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
Expand Down

0 comments on commit 55ee7e8

Please sign in to comment.