Skip to content

Commit

Permalink
chore: fixing GoBackTo name
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Apr 7, 2024
1 parent 9aa90c5 commit f96c641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/Maui/MauiModule/ViewModels/ViewModelBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.ObjectModel;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;

namespace MauiModule.ViewModels;
Expand Down Expand Up @@ -29,7 +29,7 @@ protected ViewModelBase(BaseServices baseServices)
SelectedDialog = AvailableDialogs.FirstOrDefault();
ShowDialog = new DelegateCommand(OnShowDialogCommand, () => !string.IsNullOrEmpty(SelectedDialog))
.ObservesProperty(() => SelectedDialog);
GoBack = new DelegateCommand<string>(OnGoBack);
GoBack = new DelegateCommand<string>(OnGoToBack);
}

public IEnumerable<string> AvailableDialogs { get; }
Expand Down Expand Up @@ -77,7 +77,7 @@ private void OnShowDialogCommand()
private void DialogCallback(IDialogResult result) =>
Messages.Add("Dialog Closed");

private void OnGoBack(string viewName)
private void OnGoToBack(string viewName)
{
Messages.Add($"On Go Back {viewName}");
_navigationService.GoBackToAsync(viewName);
Expand Down

0 comments on commit f96c641

Please sign in to comment.