Skip to content

Commit

Permalink
chore: Point user directly to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev committed Feb 4, 2024
1 parent 0a36161 commit f66590c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ProjectSBS/ProjectSBS/Business/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,6 @@ public NavigationCategory SelectedCategory
GoToSettings = new RelayCommand(()
=> navigation.NavigateCategory(navigation.Categories.FirstOrDefault(category => category.Id == 5)
?? throw new($"Settings category wasn't found in the Categories list on {this}.")));

Logout = new RelayCommand(() =>
{
userService.Logout();
navigation.Navigate(typeof(LoginPage));
});

Login = new RelayCommand(() =>
{
if (IsLoggedIn)
{
//TODO There is a bug in the MenuFlyout
//MenuFlyout.ShowAttachedFlyout(UserButton);
return;
}
navigation.Navigate(typeof(LoginPage));
_itemService.ClearItems();
});
}

public async override void Load()
Expand Down

0 comments on commit f66590c

Please sign in to comment.