diff --git a/StabilityMatrix/SettingsPage.xaml b/StabilityMatrix/SettingsPage.xaml
index 7a8e7b95..9b224a1b 100644
--- a/StabilityMatrix/SettingsPage.xaml
+++ b/StabilityMatrix/SettingsPage.xaml
@@ -126,22 +126,6 @@
-
-
-
-
-
-
-
-
-
+
diff --git a/StabilityMatrix/ViewModels/SettingsViewModel.cs b/StabilityMatrix/ViewModels/SettingsViewModel.cs
index 55205a30..163a37f1 100644
--- a/StabilityMatrix/ViewModels/SettingsViewModel.cs
+++ b/StabilityMatrix/ViewModels/SettingsViewModel.cs
@@ -269,20 +269,21 @@ public partial class SettingsViewModel : ObservableObject
}
[RelayCommand]
- private async Task LoginAsync()
+ private async Task WebViewDemo()
{
- var uri = new Uri("https://www.patreon.com/login");
+ var enterUri = await dialogFactory.ShowTextEntryDialog("Enter a URI",
+ new[] {
+ ("Enter URI", "https://lykos.ai")
+ });
+ if (enterUri == null) return;
+ var uri = new Uri(enterUri.First());
var dialog = dialogFactory.CreateWebLoginDialog();
var loginViewModel = dialog.ViewModel;
loginViewModel.CurrentUri = uri;
-
- // Pre-navigate before showing dialog
- // var task = loginViewModel.WaitForNavigation(uri);
- // var result = await snackbarService.TryAsync(task, "Failed to load login page");
var dialogResult = await dialog.ShowAsync();
- // TODO: Handle dialog result
+ logger.LogInformation("LoginDialog result: {Result}", dialogResult);
}
[RelayCommand]