Added Action content to SettingsExpander
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ namespace Wallet;
|
||||
|
||||
public record Closed
|
||||
{
|
||||
public static ChangedEventArgs<TValue> As<TValue>(TValue value) => new(value);
|
||||
public static ClosedEventArgs<TValue> As<TValue>(TValue value) => new(value);
|
||||
|
||||
public static ChangedEventArgs<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
public static ClosedEventArgs<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
}
|
||||
@@ -57,8 +57,8 @@ public partial class WalletNavigationViewModel :
|
||||
Add<FavouritesNavigationViewModel>("Favourites", 0);
|
||||
Add<ArchiveNavigationViewModel>("Archive", 0);
|
||||
Add<CategoriesNavigationViewModel>("Categories", 0);
|
||||
IsOpened = true;
|
||||
|
||||
IsOpened = true;
|
||||
Publisher.Publish(Changed.As<Item>());
|
||||
|
||||
return Task.CompletedTask;
|
||||
@@ -66,7 +66,7 @@ public partial class WalletNavigationViewModel :
|
||||
|
||||
public Task Handle(ClosedEventArgs<Wallet> args)
|
||||
{
|
||||
IsOpened = true;
|
||||
IsOpened = false;
|
||||
Clear();
|
||||
|
||||
return Task.CompletedTask;
|
||||
@@ -83,7 +83,7 @@ public partial class WalletNavigationViewModel :
|
||||
{
|
||||
if (await Mediator.Handle<CloseEventArgs<Wallet>, bool>(Close.As<Wallet>()))
|
||||
{
|
||||
IsOpened = false;
|
||||
Publisher.Publish(Closed.As<Wallet>());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user