Skip to content

Commit

Permalink
Show previous button regardless of whether the user has completed the…
Browse files Browse the repository at this point in the history
… exercise before
  • Loading branch information
LiamMorrow committed Oct 2, 2024
1 parent 30b2530 commit f86e8ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions LiftLog.Ui/Shared/Presentation/PreviousExerciseViewer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
</div>
<md-divider class="last:hidden"></md-divider>
}

@if(!PreviousRecordedExercises.Any())
{
<EmptyInfo >
You have never done this exercise before
</EmptyInfo>
}
</div>

@code {
Expand Down
5 changes: 1 addition & 4 deletions LiftLog.Ui/Shared/Presentation/WeightedExercise.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
@if(!IsReadonly)
{
<div class="flex justify-end">
@if (PreviousRecordedExercises?.Any() == true)
{
<IconButton data-cy="prev-exercise-btn" Type="IconButtonType.Standard" Icon="history" OnClick="ShowPrevious"/>
}
<IconButton data-cy="prev-exercise-btn" Type="IconButtonType.Standard" Icon="history" OnClick="ShowPrevious"/>
<IconButton data-cy="per-rep-weight-btn" Type=IconButtonType.Standard Icon=weight OnClick="ToggleExercisePerSetWeight"></IconButton>
<div>
<IconButton data-cy="more-exercise-btn" class="self-end" Type="IconButtonType.Standard" OnClick="() => { _menu?.Open(); }" Icon="more_horiz" id="@moreButtonId"/>
Expand Down

0 comments on commit f86e8ee

Please sign in to comment.