diff --git a/LiftLog.Ui/Shared/Presentation/ItemTitle.razor b/LiftLog.Ui/Shared/Presentation/ItemTitle.razor index 789f3253..a4926ca8 100644 --- a/LiftLog.Ui/Shared/Presentation/ItemTitle.razor +++ b/LiftLog.Ui/Shared/Presentation/ItemTitle.razor @@ -1,6 +1,10 @@ -@Title +@Title @code { [Parameter][EditorRequired] public string Title { get; set; } = null!; + + [Parameter] public EventCallback OnClick { get; set; } + + [Parameter] public string Id { get; set; } = ""; } diff --git a/LiftLog.Ui/Shared/Presentation/WeightedExercise.razor b/LiftLog.Ui/Shared/Presentation/WeightedExercise.razor index 431776f7..f4d4bad4 100644 --- a/LiftLog.Ui/Shared/Presentation/WeightedExercise.razor +++ b/LiftLog.Ui/Shared/Presentation/WeightedExercise.razor @@ -1,4 +1,5 @@ -@{ +@inject IJSRuntime JSRuntime +@{ var (displayedExercise, repToStartNext) = (PreviousRecordedExercises?.FirstOrDefault()?.RecordedExercise) switch { null => (RecordedExercise, -1), @@ -11,7 +12,8 @@