mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Move finally works
Sort entries and groups refresh page info Stopped using breadcrumb user control - for now Some refactoring
This commit is contained in:
19
WinAppCommon/ViewModels/UserControls/BreadcrumbVm.cs
Normal file
19
WinAppCommon/ViewModels/UserControls/BreadcrumbVm.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using GalaSoft.MvvmLight.Command;
|
||||
using GalaSoft.MvvmLight.Views;
|
||||
using ModernKeePass.Common;
|
||||
using ModernKeePass.Models;
|
||||
|
||||
namespace ModernKeePass.ViewModels
|
||||
{
|
||||
public class BreadcrumbVm
|
||||
{
|
||||
public RelayCommand<string> NavigateCommand { get; }
|
||||
|
||||
public BreadcrumbVm(INavigationService navigation)
|
||||
{
|
||||
NavigateCommand = new RelayCommand<string>(groupId =>
|
||||
navigation.NavigateTo(Constants.Navigation.GroupPage, new NavigationItem {Id = groupId}),
|
||||
groupId => !string.IsNullOrEmpty(groupId));
|
||||
}
|
||||
}
|
||||
}
|
@@ -9,7 +9,6 @@ namespace ModernKeePass.ViewModels
|
||||
public class TopMenuVm
|
||||
{
|
||||
public IEnumerable<GroupVm> Groups { get; set; }
|
||||
public string SelectedDestinationGroup { get; set; }
|
||||
|
||||
public TopMenuVm(IMediator mediator)
|
||||
{
|
||||
|
Reference in New Issue
Block a user