fix legal docs.
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs
@@ -2,7 +2,14 @@ using WalletWasabi.Fluent.ViewModels.Navigation;
namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
- public class LegalDocumentsViewModel : RoutableViewModel
+ [NavigationMetaData(
+ Title = "Legal Docs",
+ Caption = "Displays terms and conditions",
+ Order = 3,
+ Category = "General",
+ Keywords = new[] { "View", "Legal", "Docs", "Documentation", "Terms", "Conditions", "Help" },
+ IconName = "info_regular")]
+ public partial class LegalDocumentsViewModel : RoutableViewModel
{
public LegalDocumentsViewModel(string content)
{

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
using System;
+using System.IO;
using System.Reactive.Concurrency;
using NBitcoin;
using ReactiveUI;
@@ -104,6 +105,14 @@ namespace WalletWasabi.Fluent.ViewModels
});
AboutViewModel.RegisterLazy(() => new AboutViewModel());
+ LegalDocumentsViewModel.RegisterAsyncLazy(async () =>
+ {
+ var content = await File.ReadAllTextAsync(global.LegalDocuments.FilePath);
+
+ var legalDocs = new LegalDocumentsViewModel(content);
+
+ return legalDocs;
+ });
RxApp.MainThreadScheduler.Schedule(async () => await _navBar.InitialiseAsync());

fix legal docs.