From 0a498759e52eedc086b621755d754b016961920e Mon Sep 17 00:00:00 2001
From: Christian <6939810+chkr1011@users.noreply.github.com>
Date: Wed, 3 Aug 2022 21:08:01 +0200
Subject: [PATCH] Add more data to publish state (#52)
---
Source/Controls/ErrorBox/ErrorBox.axaml.cs | 2 +-
.../UserProperties/UserPropertiesView.axaml | 2 +-
.../UserProperties/UserPropertiesViewModel.cs | 15 +++++++-
.../Connection/ConnectionItemViewModel.cs | 2 +-
Source/Pages/Publish/PayloadInputFormat.cs | 10 +++++
.../PayloadInputFormatSelectorViewModel.cs | 37 ++++++++++++++++++-
Source/Pages/Publish/PublishPageViewModel.cs | 2 +-
.../Publish/State/PublishPageStateFactory.cs | 24 ++++++++++--
.../Publish/State/PublishPageStateLoader.cs | 22 ++++++++++-
Source/Pages/Publish/State/PublishState.cs | 16 ++++++++
.../SubscriptionsPageViewModel.cs | 2 +-
Source/Services/State/Model/UserProperty.cs | 8 ++++
12 files changed, 129 insertions(+), 13 deletions(-)
create mode 100644 Source/Pages/Publish/PayloadInputFormat.cs
create mode 100644 Source/Services/State/Model/UserProperty.cs
diff --git a/Source/Controls/ErrorBox/ErrorBox.axaml.cs b/Source/Controls/ErrorBox/ErrorBox.axaml.cs
index a4e27fc..058b9dc 100644
--- a/Source/Controls/ErrorBox/ErrorBox.axaml.cs
+++ b/Source/Controls/ErrorBox/ErrorBox.axaml.cs
@@ -35,6 +35,6 @@ void OnButtonCloseClicked(object? sender, RoutedEventArgs e)
void OnButtonCopyClicked(object? sender, RoutedEventArgs e)
{
- _ = Application.Current.Clipboard.SetTextAsync(Message);
+ _ = Application.Current?.Clipboard?.SetTextAsync(Message);
}
}
\ No newline at end of file
diff --git a/Source/Controls/UserProperties/UserPropertiesView.axaml b/Source/Controls/UserProperties/UserPropertiesView.axaml
index 8a1ecf9..bd32f93 100644
--- a/Source/Controls/UserProperties/UserPropertiesView.axaml
+++ b/Source/Controls/UserProperties/UserPropertiesView.axaml
@@ -18,7 +18,7 @@
Orientation="Horizontal">